【发布时间】:2014-10-14 17:45:13
【问题描述】:
我无法使用remote 命令远程创建源:
$ git remote add origin https://github.com/LongKnight/git-basics.git
fatal: remote origin already exists.
为了解决这个错误,我试过这个:
$ git remote -v origin
$ git remote -v show origin
它没有将文件从我的本地存储库上传到远程:
$ git push -u origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
每个存储库都有自己的来源吗?
解决方案:我使用的是 Github 或 Git Shell 附带的 Powershell,因为它也被用来完成我的教程,一旦我切换到 Git Bash,它就可以正常工作了。
【问题讨论】:
-
您的问题非常非结构化,不清楚您到底在问什么。如果您有多个问题,请提出多个问题。目前我不确定你想知道什么。
-
我很抱歉,我试图提供尽可能多的信息供人们使用,每个 repos 是否都有自己的来源,
-
@BradThrumble 不要误会。习惯网站的格式需要一段时间。尽量做到中肯。在你的问题被否决之前,还有时间改进你的问题......
-
是的,这都是学习网站上的工作方式的一部分,感谢您的回复
-
我坚持了 8 个多小时,直到我尝试了 Git Bash。(
标签: git github github-for-windows