this checkout master is too much assumptions, just remove this, it is ok to be left here, or you can do better by stashing the branch name like i did in the other commands, so you can do `git checkout $stashedBranchName` notice the stashed has nothing to do with git just describes that we save the branchName in which we are in first then recovering it by switching to it at the last of all operations