您的位置:首页 > 编程语言

如何使用repo/git提交代码

2017-02-24 17:07 211 查看
1.repo init -u xxx
(xxx为你的codebase url)

2.repo sync yyy/zzz

(yyy/zzz是你的工程代码路径)

3.cd yyy/zzz

4.git branch my-branch -t remote-branch
(创建一个本地分支my-branch与远程分支,即你要提交的分支同步)

5.git checkout my-branch

6.git add .

7.git commit -s (首次commit)

git commit --amend(修改提交)

8.repo upload .
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: