代码改变世界

smart git使用+单人开发一般流程

2018-04-08 22:16  ZealouSnesS  阅读(656)  评论(0编辑  收藏  举报

单人开发一般流程

clone

 

checkout develop

 

start gitflow

 

start feature

 

写代码。。。

 

选中文件stage(相当于add)

 

 

commit

 

 

push feature到远程(可选)

 

 

 

继续修改代码。。。

继续选中文件stage。。

继续commit。。

继续push feature。。

 

这个feature的代码终于写完了。。

最后做一次stage,commit,保证所有修改都被commit了

 

finish feature

 

 

一般选create merge commit,选择delete feature branch 可以删除feature分支,默认选上

 

 

 

finish完成之后push develop