Reputation: 3577
Is there a way to ignore git-svn updates? my usual workflow:
dev
git branchgit svn rebase
on mastercherry-pick
from dev
git svn dcommit
git merge master
the only problem with this is that after i git merge master
, i do git log -n ###
, and i get all the git-svn
updates as well. Can i limit it just the latest git
commits?
Upvotes: 2
Views: 202
Reputation: 5166
No, you can't merge master back into the dev-branch without getting the git-svn commits along for the ride.
The thing is that when you do a git svn dcommit, you actually rewrite the commits that you've cherry-picked from the dev branch. The git-svn commits are now part of your history, and it would be folly to try to get rid of them some how. If I'm guessing correctly, your dev branch is full of merge commits where your git-svn commits are re-joined with your dev-commits because they have diverged. This is messy.
That being said, I'm also unsure if your workflow is optimal. Maybe you should try this:
dev
branchgit svn rebase
on master for the lastest svn changesgit rebase master
in dev
git merge dev
on master
git svn dcommit
on mastergit branch -d dev
git checkout -b dev
for the next feature/fix.Upvotes: 1