BuZZ-dEE
BuZZ-dEE

Reputation: 6929

How to reset to git-svn remote "branch"?

How can I reset my local Git branch to the git-svn remote "branch"?

In Git I can execute the command git reset --hard origin/master to reset my local master branch back to the origin/master remote branch.

How does this work if you use the Git-SVN bridge?

Upvotes: 1

Views: 775

Answers (1)

Vampire
Vampire

Reputation: 38669

It makes no difference, you do it exatly the same.
Your local branches are just local Git commits on top of the git-svn produced commits.
You can at any time use normal Git rebase, reset and so on as long as you only modify local commits, none that were fetched from SVN.
On dcommit git-svn then looks for the first commit in the history that came from SVN and commits into the respective branch of that commit.

Upvotes: 2

Related Questions