Git常用命令总结 命令用途git status查看当前分支状态git add .添加至本地代码库git commit -m提交到本地代码库git push同步线上线下环境git pull获取线上新分支git checkout otherBranch切换新分支git merge origin/otherBranch当前分支上合并其他分支git branch获取所有分支列表