cd 项目目录
git add .
git status
git commit -m "add code"
git pull --rebase origin 分支名
git push origin 分支名
git checkout 切换分支名
若分支只有你一人在用,无需pull,直接push覆盖
git提交 切换分支
原文:https://www.cnblogs.com/lostguangtou/p/11635090.html