git 提交代码过程 (mac)

版权声明:转载请注明原处,thanks~ https://blog.csdn.net/qq_41066340/article/details/83060789

1、检查分支 git branch

2、pull 一下代码,以免冲突            e.g.      git pull origin 180907_maya_mst     

3、查看现在不同的与线上不同的代码     

git status         (多余的删掉,不需要的隐藏.gitignore,新的文件git add +文件名)   [查看隐藏文件是ls -a]

4、重复3 ,没问题commit代码

5、arc diff  检查代码是否正确        【pwd 现在路径】 填写提交信息   Revision URI: http://codereview.XXX.cn/D365   查看

6、没问题push代码                       git push origin 180907_maya_mst

猜你喜欢

转载自blog.csdn.net/qq_41066340/article/details/83060789