Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yzgyyang/a0e3f0e4e939b36c01ebcb7a7738ac01 to your computer and use it in GitHub Desktop.
Save yzgyyang/a0e3f0e4e939b36c01ebcb7a7738ac01 to your computer and use it in GitHub Desktop.
Git create a new repo based on existing ones

cd to local repo containing old_branch and:

git push https://github.com/accountname/new_repo.git +old_branch:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment