Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save yzgyyang/a0e3f0e4e939b36c01ebcb7a7738ac01 to your computer and use it in GitHub Desktop.

Select an option

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