Skip to content

Instantly share code, notes, and snippets.

@huffmanks
Last active May 13, 2024 23:55
Show Gist options
  • Save huffmanks/504789d9612ff7c969a2bb54a8363dbf to your computer and use it in GitHub Desktop.
Save huffmanks/504789d9612ff7c969a2bb54a8363dbf to your computer and use it in GitHub Desktop.

Reset local and pull

git reset --hard && git pull

OR

git stash && git pull && git stash pop

Remove Git repo from local directory

rm -rf .git

Clone an existing repository

git clone https://github.com/user/repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment