github how to switch to a previous branch code example Example: git go to previous branch git checkout -