Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

9.5. git-checkout - Checkout and switch to a branch

9.5.1. checkout master
$ git-checkout master
Switched to branch "master"
			
9.5.2. checkout branch
$ git-branch
* master
  mybranch

$ git-checkout mybranch
Switched to branch "mybranch"

$ git-branch
  master
* mybranch