机器人 救救瓜
Toggle navigation
Home
SCM-tool
Linux
Jenkins
SVN
other
About Me
Archives
Tags
Repo 的常用命令
2021-08-02 09:33:26
869
0
0
gua_l
# repo # 常用命令 ## 同步代码 ``` repo sync -j8 ``` ## 打tag ``` ## # 对所有project 的当前分支的最新代码打一个tag repo start ${Base_BRANCH} --all repo forall –c git tag base-20210803 ``` ## 合并分支 ``` ## # 当前切换到master 分支 ,然后将topic 分支合并到master ## repo checkout master ## repo forall –p –c git merge topic ## repo forall –c git tag base-20210804 ## repo forall –p –c git merge branch1 ``` ## 查看分支 ``` repo branches ``` ## 查看状态 ``` repo status ``` ## 分支log 比较 ``` repo forall -p -c 'git log remotes/xxx-celadon/celadon-1 ^remotes/xxx-celadon/celadon-2 --pretty=format:"%H %cn %s"' ```
Pre:
记录一些超好用的工具和tips
Next:
zabbix
0
likes
869
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.