美文网首页
Git 提交代码流程

Git 提交代码流程

作者: 持心守正 | 来源:发表于2017-11-14 12:12 被阅读103次

git提交代码流程

git pull———>修改代码———>git commit————>git pull————>(合并冲突)——>git push

(1)修改文件之前,一定要先git pull,保证修改的是最新的版本

(2)git push之前一定要先git pull,因为可能 别人修改相同的文件并已commit ,应该merge过来,一并push

(3)git commit 和git push时都要diff,确认修改的内容是自己要修改的

相关文章

网友评论

      本文标题:Git 提交代码流程

      本文链接:https://www.haomeiwen.com/subject/bqwxvxtx.html