I was wondering if anyone would have a better suggestion for keeping a feature branch in sync with it's parent branch.
We typically have multiple feature branches that are being worked on at a time, each derived from our develop
branch. It's fairly common for feature branches to be merged into develop
a couple times a day.
In order to stay on top of changes (i.e. resolve conflicts) I find I need to keep the feature branches I'm actively working on up to date with develop
.
To do this I run these commands a couple times a day:
git checkout develop
git pull
git checkout feature/foo
git merge develop
git push
The last git push
I usually only do if I'm working with someone else on the feature branch.
Is there a better or more convenient way to do this?