Skip to content

Instantly share code, notes, and snippets.

@trepichio
Last active January 21, 2022 03:40
Show Gist options
  • Save trepichio/11339137fa0d9514e8c0d0a1f0e74915 to your computer and use it in GitHub Desktop.
Save trepichio/11339137fa0d9514e8c0d0a1f0e74915 to your computer and use it in GitHub Desktop.
Pushes a branch to its own GitHub repository

Push a Git Branch to a NEW repository

cd to the old repo directory and then

$ git push https://github.com/trepichio/<newRepository>.git +theBranchIwant:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment