git 复制分支并推送到远程仓库
# 从master切分出dev分支,并推送到远端
git checkout -b develop
# 切换到功能开发分支
git checkout -b feature-[name_of_feature]
# 进行功能开发,在阶段性完成之后,将代码合并回本地的dev分支
git checkout develop
# 确认分支代码为最新
git pull origin develop
# 注意,一定要添加--no-ff 标记
git merge --no-ff feature-[name_of_feature]
# 如果确认feature分支已经不需要了可以删除
# git branch -d feature-[name_of_feature]
# 代码提交到远端分支
git push origin develop