git checkout -b dev
git add .
git commit -m ‘提交的备注信息‘
git push -u origin dev
git checkout master
git pull origin master
//如果是自己一个开发就没有必要了,为了保险期间还是pull
git merge dev
git status
On branch master
Your branch is ahead of ‘origin/master‘ by 12 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
//上面的意思就是你有12个commit,需要push到远程master上
git push origin master
原文:https://www.cnblogs.com/loveliang/p/13588034.html