I have branchA, after my work on branchA I commit all of my changes without pushing. After that, instead of going back to master by: git checkout master
branchA
git checkout master