Skip to content

Instantly share code, notes, and snippets.

@RicoP
Created July 20, 2025 09:26
Show Gist options
  • Save RicoP/a367fdc9f8aad989d9e9a1c63cfb42fa to your computer and use it in GitHub Desktop.
Save RicoP/a367fdc9f8aad989d9e9a1c63cfb42fa to your computer and use it in GitHub Desktop.
Make a fork of a repo outside of github
#!/bin/bash
git init
git remote add upstream https://gitlab.com/o9000/tint2.git
git remote add origin [email protected]:RicoP/tint2-fork.git
git fetch upstream
git checkout -b main upstream/master
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment