git 如果本地有多个分支,要提交到仓库,不必每一个都checkout,直接用一句git代码直接

把所有分支push到远程仓库

代码如下:

git push —all

 

如果需要下拉所有代码

git pull —all