1、创建本地分支:
git checkout -b dev_local
或在之前的本地分支上拉取最新数据
git pull origin dev
2、修改dev_local 中的代码后
git add .
git commit -m "merge dev_local to dev"
3、切换分支到dev
git checkout dev
4.合并dev_local 到 dev
git merge dev_local
5、push 到远程分支
git push origin dev
6、删除本地dev_local 分支(看开发情况,需要就删,不需要就不删除)
git branch -d dev_local