最佳答案
在我的 Github 帐户上有一个存储库 moodle
,我从官方存储库中获得 forked
。
I then cloned it on my local machine. It worked fine. I created several branches (under the master
branch). I made several commits and it worked fine.
当我这样做时,我不知道我是如何得到以下错误的: git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
如何在不影响 Github 上的存储库的情况下解决这个错误?
我用的是 Ubuntu 12.10
做完 cat $(git rev-parse --show-toplevel)/.git/config
之后,我的 .git/config
的内容是:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
[branch "MOODLE_23_STABLE"]
[branch "MOODLE_24_STABLE"]
[remote "upstream"]
url = git://git.moodle.org/moodle.git
fetch = +refs/heads/*:refs/remotes/upstream/*