为什么我的git push不?我创建了存储库,并不断收到以下消息:
C:\Users\petey_000\rails_projects\first_app>git push -u github master
Username for 'https://github.com': ***@gmail.com
Password for 'https://***@[email protected]':
remote: Repository not found.
fatal: repository 'https://github.com/pete/first_app.git/' not found
您的用户名不应是电子邮件地址,而应是GitHub用户帐户:pete
。
并且您的密码应该是您的GitHub帐户密码。
实际上,您可以直接在远程URL中设置用户名,以便Git仅请求您的密码:
cd C:\Users\petey_000\rails_projects\first_app
git remote set-url origin https://[email protected]/pete/first_app
并且您需要fist_app
首先在GitHub上创建存储库:确保将其完全创建为空,或者,如果您使用初始提交(包括README.md
,许可证文件和.gitignore
文件)创建存储库,则在制作之前先进行git pull你的git push
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句