simplify git command #13

This commit is contained in:
Jerry Lee
2015-10-20 22:36:07 +08:00
parent 50c944e8fc
commit 99cdd8b76b
4 changed files with 53 additions and 13 deletions

View File

@@ -101,6 +101,10 @@ git push -u origin develop
```bash
git clone ssh://user@host/path/to/repo.git
git checkout -b develop origin/develop
#【译注】当没有本地分支 develop 时,
# 最后一条命令,我使用更简单的 git checkout develop
# 会自动 把 远程分支origin/develop 检出成 本地分支 develop
```
现在每个开发都有了这些历史分支的本地拷贝。