有多个仓库。怎样切换仓库push?
1.先看看目前所在的仓库:
git remote -v
2.切换远程仓库地址:
git remote set-url origin URL 更换远程仓库地址,URL为新地址。

3.push代码:
git push
大功告成!
有多个仓库。怎样切换仓库push?
1.先看看目前所在的仓库:
git remote -v
2.切换远程仓库地址:
git remote set-url origin URL 更换远程仓库地址,URL为新地址。

3.push代码:
git push
大功告成!
875
1580
3万+
490

被折叠的 条评论
为什么被折叠?