1.拉取主干
git pull origin master
2.在master上创建分支并切换
git checkout -b dev master
3.添加提交代码
git add .
git commit -m "comment"
4.合并分支到主干
git checkout master //先切换到主分支
git merge dev //合并dev分支到master
5.更新到远程仓库
git push origin master
1.拉取主干
git pull origin master
2.在master上创建分支并切换
git checkout -b dev master
3.添加提交代码
git add .
git commit -m "comment"
4.合并分支到主干
git checkout master //先切换到主分支
git merge dev //合并dev分支到master
5.更新到远程仓库
git push origin master