Created
May 17, 2013 02:42
-
-
Save ryunhe/5596578 to your computer and use it in GitHub Desktop.
New feature workflow on git.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. 开始任务,创建一个新的分支 | |
bw start <feature> | |
git checkout master | |
git fetch origin -v | |
git fetch upstream -v | |
git checkout -B <feature> | |
# 1.1 编码中 | |
git commit | |
# 2. 编码结束,发pull-request,求code review | |
bw review <feature> [-i issue] | |
git push origin master:<feature> | |
git push origin | |
hub pull-request -b baixing:master [-i issue] | |
# 2.1 修复测试问题 | |
git commit | |
git push | |
# 3. Code review完成(代码已合并到baixing/haojing:master),清理任务分支 | |
bw finish <feature> | |
# 4. 测试、部署上线 | |
git branch -D <feature> | |
git push origin :<feature> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment