方式1、直接修改:
git remote set-url origin xxxxx.git
方式2、先删后加 :
git remote rm origin
git remote add origin xxxxx.git
修改默认pull和push分支:
git branch --set-upstream-to=origin/develop develop
origin/develop develop
为要设置的默认分支
git remote set-url origin xxxxx.git
git remote rm origin
git remote add origin xxxxx.git
git branch --set-upstream-to=origin/develop develop
origin/develop develop
为要设置的默认分支