git 设置

设置远程origin:git remote add origin ssh://yourname@yourdomain/path/to/yourgit.git

设置远程默认分支:git branch --set-upstream-to=origin/<branch> master 

原文地址:https://www.cnblogs.com/vagrantatbeijing/p/3431928.html