服务器添加新仓库后,本地使用repo如何同步更新代码

来源:互联网 发布:淘宝网珠宝首饰 编辑:程序博客网 时间:2024/04/28 06:25
服务器添加新仓库后,本地需要先更新.repo,才能同步更新代码,步骤如下:

1. cd ~/xxx/.repo/manifest

2. git fetch origin

3. git rebase origin master

4. cd ../..

5. ~/xxxx/repo sync -j4

0 0
原创粉丝点击