So a lot of times in my group projects I make a branch from the origin/master and make a million commit to it and usually, nobody updates the master whilst I’m working on my own branch. This results in my branch being ahead of master by 17 commits and nothing new in master.
This is a note to future-self about how to effectively just merge my branch into master so that my branch is master.
(on development branch) git merge master git checkout master (on master branch) git merge development
And… if you are like me with a bunch of commits ahead of master a lot of fast-forwarding will take place.
The wonderful thing about nobody else updating the code: no merge conflicts. If you have merge conflicts then fix them obviously, but try to make sure it’s someone else’s problem by pushing first.