我不完全确定发生了什么,但由于某种原因,我的git存储库的masterref文件现在是空的。我们在Dropbox上托管存储库,所以它可能与that..but有关,现在我不能退出它。它是这样写的:
Your configuration specifies to merge with the ref 'master' from the remote, but no such refDropbox保留了文件的版本,所以如果我返回到
为此,我首先创建了一个新的存储库,然后在我的本地计算机上更改为该目录,并使用以下命令git add *git remote addorigin https://github.com/username/project.git但上面写着
No refs in common and none specifiedPerhaps yo
然而,只有在那之后,我才意识到我自己陷入了一个我不知道如何恢复的境地,因为在做git remote remove origin之前,我有:On branch masterYour branch is ahead of 'origin/master' by 5 commits.(use "git push" to publish your local commits)
nothing to commit, wo