将repo理解为multi-repo的 git alias来使用
git | repo | |
|---|---|---|
更新并切回到develop分支 | git fetch -a git checkout develop | repo sync repo checkout develop |
新建分支并进行开发 | git branch -b new_feature | repo start new_feature --all |
查看所修改的代码 | git diff | repo diff |
提交代码 | git add . -u git commit -m "update a" | repo forall -c git add . -u repo forall -c git commit -m "update a" |
查看状态 | git status | repo info -o |
测试 | ... | |
拉取最新的代码并rebase | git fetch -a git rebase origin/develop | repo sync repo rebase |
解决冲突后提交 | git push | repo upload |
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。