How to set upstream branch in git-svn?
问题 While working on a usual git repository a local branch usually tracks a corresponding remote upstream branch. This way I can easily see, whether I am ahead or behind of my upstream branch and therefore if I need to push or pull to bring them in sync. Also my prompt immediately shows this state, which is very convenient. Now I am working on a SVN repository using git-svn . I used --prefix=svn for the clone, therefore git branch -r lists svn/trunk as a remote branch, but (although git svn