码迷,mamicode.com
首页 > 其他好文 > 详细

Git工作简要流程

时间:2019-10-10 20:06:53      阅读:64      评论:0      收藏:0      [点我收藏+]

标签:git pull   checkout   commit   编辑   合并   功能   缓冲   div   origin   

1.在线上创建新的功能分支,更新到本地:

git pull

2.切换分支:

git checkout branch-name

3.去代码编辑器开始你的表演

4.添加代码到缓冲区以备提交:

git add .

5.写代码更新备注,并提交到本地仓库:

git commit -m ‘xxxxxx‘

6.本地仓库同步到线上仓库:

git push (-u origin branch-name)

7,切换到master分支:

git checkout master

8.让master合并线上的功能分支:

git merge origin/branch-name

9.更新线上master:

git push

Git工作简要流程

标签:git pull   checkout   commit   编辑   合并   功能   缓冲   div   origin   

原文地址:https://www.cnblogs.com/VCplus/p/11645947.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!