Skip to content

Instantly share code, notes, and snippets.

@ryunhe
Created May 17, 2013 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryunhe/5596578 to your computer and use it in GitHub Desktop.
Save ryunhe/5596578 to your computer and use it in GitHub Desktop.
New feature workflow on git.
# 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