This may be a duplicate of How to keep a git branch in sync with master (I assume I can just replace Master with the other branch), but it's vital that this works and doesn't merge the wrong way around so I need to make sure.
Scenario
There was a branch called v1
, and I created a branch off of that called v1_adminui
. I've made around 10 commits to my branch v1_adminui
, but a major improvement to another part of the project has been made in v1
, so I want to Sync that change with my current branch.
I believe the following would do it:
git checkout v1
git pull
git checkout v1_adminui
git merge v1
Please can you confirm if this is correct? If not, any help would be appreciated on how to accomplish this.