git checkout -切换到之前工作的branch。请看例子:

[root@localhost debugging-stories]# git branch
  master
  patch-1
* patch-2
[root@localhost debugging-stories]# git checkout -
Switched to branch 'patch-1'
[root@localhost debugging-stories]# git branch
  master
* patch-1
  patch-2

可以看到切换到了patch-1 branch