Skip to content

Instantly share code, notes, and snippets.

@mohitt
Created February 23, 2016 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohitt/43650cf50a505336c1ce to your computer and use it in GitHub Desktop.
Save mohitt/43650cf50a505336c1ce to your computer and use it in GitHub Desktop.
git clone <original-remote>
cd <directory>
git remote add gitlab <gitlab-url>
for remote in `git branch -r`; do git branch --track ${remote/origin\//}; done
git push --all gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment