Git push everything to new origin
35,094
Solution 1
git remote add origin <address>
git push origin <branchname>
Solution 2
(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
Author by
Kevin
Updated on May 25, 2020Comments
-
Kevin about 4 years
I deleted my previous git origin, and created a new one. I did git add . and git commit. But it will update changes, how do i push everything into the new origin