我正在使用git-svn
,我想更新到最新的 SVN HEAD。
当我打字git pull
时,它说:
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
我在这里读到我应该做类似的事情:
git checkout -b real-trunk remotes/trunk
但我不明白这个命令。是什么remote-trunk
?在任何情况下,git
都会出现错误:
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'remotes/trunk' which can not be resolved as commit?
这是我的.git/config
:
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[svn-remote "svn"]
url = http://name.xyz.com/svn/trunk/project
fetch = :refs/remotes/git-svn
另外,谁能告诉我如何恢复我在 git checkout 中所做的所有更改?我想回到新鲜的 SVN HEAD 版本。