使用git-svn
していますが、最新のSVNHEADに更新したいと思います。
私がタイプ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チェックアウトで行ったすべての変更を元に戻す方法を教えてもらえますか?新しいSVNHEADバージョンに戻りたいです。