有多个仓库。怎样切换仓库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
大功告成!