Я использую 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.