Skip to content

Instantly share code, notes, and snippets.

@MikeCraig418
Last active March 17, 2017 22:51
Show Gist options
  • Save MikeCraig418/aa6e2a8da3679f22702d652832c3985e to your computer and use it in GitHub Desktop.
Save MikeCraig418/aa6e2a8da3679f22702d652832c3985e to your computer and use it in GitHub Desktop.
Cloning remote repository out into an existing directory, overwriting local changes.
rm -rf .git
git init
git remote add origin https://url/account/repo
git fetch
git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment