Git工作简要流程

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

猜你喜欢

转载自www.cnblogs.com/VCplus/p/11645947.html