how to checkout to the previous branch code example Example: git go to previous branch git checkout -