Skip to content

Instantly share code, notes, and snippets.

@niklasvincent
Created May 18, 2017 20:10
Show Gist options
  • Save niklasvincent/1b21b305ec2b20c295d34ed497b04595 to your computer and use it in GitHub Desktop.
Save niklasvincent/1b21b305ec2b20c295d34ed497b04595 to your computer and use it in GitHub Desktop.
Migrating from Github to Gitlab

After setting up the repository with the exact same name (username/repository) with Gitlab and importing it directly in Gitlab.

git remote set-url origin $(git remote get-url origin|sed -e 's/github/gitlab/')
git push --all origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment