设置本地push到远端分支位默认分支

git checkout -b dev

git push --set-upstream origin dev

原文地址:https://www.cnblogs.com/hd92/p/13554399.html