找到工程的.git目录下的config文件,可以看到当前的一份remote配置
[remote "origin"]
url = http://192.168.0.38/xx/test.git
fetch = +refs/heads/*:refs/remotes/origin/*
可以在其下面复制一份,然后修改别名和地址即可
[remote "originText"]
url = https://gitee.com/ou06/ttt.git
fetch = +refs/heads/*:refs/remotes/origin/*
当下次push时,git就会允许选择push的位置