| seq | step | op | |
|---|---|---|---|
| 1 | start a new task | git checkout develop | |
| git pull -r | |||
| git checkout -b feature/10201_update-file1 | |||
| git push —set-upstream origin feature/1001_update-file1 | |||
| 2 | commit 1 | git add . | |
| git commit -m”c1” | |||
| git pull -r | |||
| git push | |||
| 3 | commit 2 | git add . | |
| git commit -m”c2” | |||
| git pull -r | |||
| git push | |||
| 4 | commit 3 | git add . | |
| git commit -m”c3” | |||
| git pull -r | |||
| git push | |||
| 5 | comptete task | git pull -r | 合并多个提交成一次 |
| gitk | |||
| git rebase -i hea~3 | |||
| git push -f | |||
| git checkout develop | 获取主分支的变化到feature分支 | ||
| git pull -r | |||
| git checkout feature/10201_update-file1 | |||
| git rebase develop | |||
| git status | 解决冲突 | ||
| resolve conflicts | |||
| git add . | |||
| git rebase —continue/git rebase —abort | |||
| git push -f | |||
| 6 | submit merge request |
