GIT入门笔记(20)- git 开发提交代码过程梳理

git开发提交流程
新项目开发,可以直接往master上提交
老项目维护,可以在分支上修改提交,
多次add和commit之后,也可以用pull合并主干和本地master,解决冲突后再push

1、检出代码
git clone http://gitserver/kubernetes/api-gateway-controller.git
git clone http://gitserver/kubernetes/api-gateway-engine.git
引入为eclipse工程,修改代码

2、提交代码
git add
git rm

检查目录变化:: git diff
检查文件变化:: git status

提交到本地master:: git commit
提交到远程分支:: team->remote->push

原文地址:https://www.cnblogs.com/lexiaofei/p/6854845.html