I have a remote repository that I've pulled and am branching from. I want to keep the new branch up to date with changes done to master. I'm thinking about the workflow below, does it make sense or are there are better ways to do this?
Initial branching and checkout:
git checkout master git pull git checkout -b my_branch
Do some work in
my_branch
, then periodically:git checkout master git pull git checkout my_branch git merge master --no-ff
Repeat step 2 as needed, with periodic pushes to the remote my_branch
.
Then when ready for a merge back:
git checkout master
git merge my_branch --no-ff
Sound ok?