git 同时推送多个远程仓库

今天遇到个git的问题:需要同时提交到两个远程仓库

解决方法:

git add .
git commit -m '提交信息'
git remote -v   
git remote add old_origin 另一个远程仓库地址
git push old_origin

因为我的origin代称已经使用了,所以新写了一个old_origin代称

posted @ 2023-11-22 17:51  刘星Stars  阅读(51)  评论(0编辑  收藏  举报