Created
July 12, 2019 05:42
-
-
Save luoqeng/acdb2529ef3d0538c8b31d1e7b8af68b to your computer and use it in GitHub Desktop.
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
# 本地开发,新建feature | |
arc feature feature_1 | |
# 或 git checkout -b feature_1 | |
# 修改本地文件,然后提交 | |
git add | |
git commit | |
# 提交code review | |
arc diff | |
# 通过--reviewers name参数可以指定reviewer | |
# 这里可以和一个Task(比如T123)关联起来,在Summary那个域里填上Ref T123,或者Fixes T123 | |
# 两者的区别是Fixes在代码提交后会自动关闭Task,Ref不会 | |
# 也可以提交code review之后,在浏览器里操作 | |
# 本地修改后再次提交code review(这个revision是上次创建code review时的id,比如D1252) | |
arc diff --update 1252 | |
# --update 1252 也可以不加,默认会合到上一个review中 | |
# reviewer已经Accept之后,提交代码(不要用git push!): | |
arc land feature_1 | |
# 如果报错找不到对应的revision,带上revision号(比如1252)运行: | |
arc land --revision 1252 | |
# land之后,feature branch会被自动删除 | |
# land 使用后会将当前分支 merge 或者squash merge 到master分支,提供详细的提交信息,推送到master并且删除本地分支 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment