git push 和 git push origin xxx 的区别

git push -u origin master 上面命令将本地的master分支推送到origin主机

加上了-u参数,Git不但会把本地的master分支内容推送的远程新的master分支,还会把本地的master分支和远程的master分支关联起来,在以后的推送或者拉取时就可以简化命令。

git push,默认只推送当前分支

原文地址:https://www.cnblogs.com/xxflz/p/13396972.html