Software Development
Pages
Home
About
Contact
Tuesday, November 06, 2018
Moving a Repo Quickly from Gitlab to Github
If you don't mind losing the git log in the new repo, you can move a repo easily in three steps:
1. Remove the existing git files in the repo:
rm -rf .git
2. Add a new origin:
git
remote add new-origin git@github.com:your-user:your-project.git
3. Push it to the new repo
git
push --all new-origin
Newer Post
Older Post
Home