1、使用sourcetree:点击右上角设置图案。
2、使用phpstorm:git-remotes
3、直接修改config:.git/config
前两种自动在config文件加入以下配置:
[remote “old-origin”]
url = xxx
fetch = +refs/heads/:refs/remotes/old-origin/
以上。pull/push操作指明origin即可,如:
git push old-origin
1、使用sourcetree:点击右上角设置图案。
2、使用phpstorm:git-remotes
3、直接修改config:.git/config
前两种自动在config文件加入以下配置:
[remote “old-origin”]
url = xxx
fetch = +refs/heads/:refs/remotes/old-origin/
以上。pull/push操作指明origin即可,如:
git push old-origin