Skip to content

Instantly share code, notes, and snippets.

@AlexArchive
Last active August 29, 2015 14:02
Show Gist options
  • Save AlexArchive/014903d17e2192a19f8c to your computer and use it in GitHub Desktop.
Save AlexArchive/014903d17e2192a19f8c to your computer and use it in GitHub Desktop.
Git Cheat Sheet
git remote -v #output remotes
git remote rm REMOTENAME #remove remote
git diff #diff for unstaged files
git diff --staged #diff for staged files
git diff --cached #diff for staged files
rm -rf .git #delete Git directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment