我运行git remote add origin git@github.com:meltzerj/dreamstill.git
这很好,但是当我运行git push origin master
时,我收到错误:
ERROR: meltzerj/dreamstill.git doesn't exist. Did you enter it correctly?
fatal: The remote end hung up unexpectedly
但是,存储库确实存在:https://github.com/meltzerj/Dreamstill
最近怎么回事?
这是.git / config的内容:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = git@github.com:meltzerj/dreamstill.git
fetch = +refs/heads/*:refs/remotes/origin/*
答案 0 :(得分:14)
您的存储库在“Dreamstill”中有一个大写字母D.尝试:
git remote rm origin
git remote add origin git@github.com:meltzerj/Dreamstill.git