make your changes on master creat new branch my_branck and checkout the new branch git add . git commit git push git checkout my_branch git checkout master to make sure your master is clear `git clewan -f`