git

1.修改命令

git remote origin set-url [url]

2.先删后加

git remote rm origin
git remote add origin [url]

3.直接修改config文件

git 远程仓库管理

4.You asked me to pull without telling me which branch you

want to merge with, and 'branch.production.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull ').
See git-pull(1) for details.
解决: git branch --set-upstream production origin/production

原文地址:https://www.cnblogs.com/wangweiwen/p/5447775.html