Steps to merging branch into master git fetch. git rebase origin/master. git checkout master. git pull origin master. git merge test. git push origin master.