Reading time: 1 min
Clone all remote branches:
git clone --mirror path/to/original path/to/dest/.git
cd path/to/dest
git config --bool core.bare false
git checkout anybranch
Change remote:
git remote set-url origin 'url'
Add remote:
git remote add origin 'url'
Push all branches and tags and set origin
as upstream:
git push -u origin --all && git push -u origin --tags
To skip Travis or Gitlab CI builds, add [ci skip] to commit message