Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tangoabcdelta/596d2ce07083a40f3a24a393e3cf99a6 to your computer and use it in GitHub Desktop.
Save tangoabcdelta/596d2ce07083a40f3a24a393e3cf99a6 to your computer and use it in GitHub Desktop.
How to clone a git repository into a non-empty directory?
How to clone a git repository into a non-empty directory?
git init

git remote add origin PATH/TO/REPO

git fetch

git checkout -t origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment