远程:找不到存储库致命:找不到 [英] remote: repository not found fatal: not found
问题描述
为什么我的git push不?我创建了存储库,并不断收到以下消息:
Why won't my git push? I created the repository and I keep getting this message:
C:\Users\petey_000\rails_projects\first_app>git push -u github master
Username for 'https://github.com': ***@gmail.com
Password for 'https://***@gmail.com@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/pete/first_app.git/' not found
推荐答案
您的用户名不应该是电子邮件地址,但您的GitHub用户帐户是pete
.
并且您的密码应该是您的GitHub帐户密码.
Your username shouldn't be an email address, but your GitHub user account: pete
.
And your password should be your GitHub account password.
实际上,您可以直接在远程URL中设置用户名,以便Git仅请求您的密码:
You actually can set your username directly in the remote url, in order for Git to request only your password:
cd C:\Users\petey_000\rails_projects\first_app
git remote set-url origin https://pete@github.com/pete/first_app
并且您需要首先在GitHub上创建fist_app
存储库:确保完全完全创建它为空,或者,如果您使用初始提交(包括README.md
)创建它,许可证文件和.gitignore
文件),然后在制作git push
之前先进行git pull.
And you need to create the fist_app
repo on GitHub first: make sure to create it completely empty, or, if you create it with an initial commit (including a README.md
, a license file and a .gitignore
file), then do a git pull first, before making your git push
.
这篇关于远程:找不到存储库致命:找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!