git push all remote branches to a new origin -


say have repo cloned remote , want remote branches clone remote b repo. have tried use git push --mirror didn't work. how can solve this?

after setting new origin:

git remote set-url origin git://new.url.here 

i have used:

git push origin refs/remotes/origin/*:refs/heads/* 

Comments