git: how to copy code from one remote to another
Jun 18, 2021
Let’s say you have an origin
and you need to push the code to another remote fork
which is currently empty
git remote add fork git@host:aaa/bbb.gitgit push fork 'refs/remotes/origin/*:refs/heads/*'
git push fork 'refs/tags/*:refs/tags/*'