Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitのpushができない #42

Open
Tomoyuki-Kitano opened this issue Mar 11, 2024 · 7 comments
Open

gitのpushができない #42

Tomoyuki-Kitano opened this issue Mar 11, 2024 · 7 comments

Comments

@Tomoyuki-Kitano
Copy link
Contributor

~/Documents/OkinawaCompPhysFoodSurvey2024.jl (Tomoyuki-Kitano/okinawafood)
$ git push origin terasakisatoshi/okinawa-food
error: src refspec terasakisatoshi/okinawa-food does not match any
error: failed to push some refs to 'https://github.com/Tomoyuki-Kitano/OkinawaCompPhysFoodSurvey2024.jl'

環境
windows11 pro
gitbash

@Tomoyuki-Kitano
Copy link
Contributor Author

よくよく見たらgithub.userが登録されていませんでした。
$ git config --get github.user

@Tomoyuki-Kitano
Copy link
Contributor Author

github.userとgithub.emailは登録できたのですが
相変わらずpushができません

@KenHino
Copy link
Contributor

KenHino commented Mar 11, 2024

$ git push --set-upstream origin <your-gh-account>/okinawa-foodにしたら自分はできました。

@Tomoyuki-Kitano
Copy link
Contributor Author

~/Documents/OkinawaCompPhysFoodSurvey2024.jl (Tomoyuki-Kitano/okinawafood)
$ git push --set-upstream origin Tomoyuki-Kitano/okinawa-food
error: src refspec Tomoyuki-Kitano/okinawa-food does not match any
error: failed to push some refs to 'https://github.com/Tomoyuki-Kitano/OkinawaCompPhysFoodSurvey2024.jl'

似たようなエラーになりました

@Tomoyuki-Kitano
Copy link
Contributor Author

git config --global github.user
しても
同じエラーが出ました

@KenHino
Copy link
Contributor

KenHino commented Mar 11, 2024

Tomoyuki-Kitano/okinawafoodTomoyuki-Kitano/okinawa-foodokinawafoodの間のハイフンの有無が一致してないかもしれません。

@Tomoyuki-Kitano
Copy link
Contributor Author

ハイフンなしだとできました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants