Git push everything to new origin

烂漫一生 提交于 2019-12-02 19:00:25
git remote add origin <address>
git push origin <branchname>

(works with git 1.8.4)

If you want to push all branches at once:

git push <URL> --all

To push all the tags:

git push <URL> --tags

Hmmmm I just did this. I am not sure if you did exactly the same but I had a different method.

I setup a bare repo on "newserver" (using ssh). Had the full clone of the repo on my laptop.

I then did:

git remote set-url origin "newservers url"
git push origin master

git push new_remote_name branch_name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!