1. git clone ssh://flycm.intel.com/scm/at/atSrc

或者git clone ssh://flycm.intel.com/scm/at/atJar

或者git clone ssh://flycm.intel.com/scm/at/atFramework

2. git checkout cpeg/scm/stable

    切换分支,然后更新代码

3. git pull

先把远程分支上最新的代码拉到本地,之后在做相应修改

4. git status

 查看本地脚本更新内容

5. git add xx/xx/xx/xx.java

           添加修改过的文件

6. git commit –m “xxxx”

 提交修改过的文件,同时添加相应的comment

7. git branch –a

 查看本地分支和远程分支

8. git push origin cpeg/scm/stable:refs/for/cpeg/scm/stable

 把本地已修改过的代码推送到远程分支上,然后点击生成的网址,review代码,之后添加review人员。

过程示意图如下:

git克隆/更新/提交代码步骤及示意图  

                                                     图 1 git clone and check

git克隆/更新/提交代码步骤及示意图

                                                图2 git commit

git克隆/更新/提交代码步骤及示意图 

                                                         图3 git push

相关文章:

  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2021-12-21
  • 2021-07-10
  • 2022-01-07
  • 2022-01-07
猜你喜欢
  • 2021-04-02
  • 2022-01-08
  • 2022-12-23
  • 2021-09-23
  • 2022-02-22
  • 2021-12-22
相关资源
相似解决方案