git command to return to previous branch code example Example: git go to previous branch git checkout -