Skip to content

Instantly share code, notes, and snippets.

@vikeri
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikeri/8eb812d7a7a9e8579631 to your computer and use it in GitHub Desktop.
Save vikeri/8eb812d7a7a9e8579631 to your computer and use it in GitHub Desktop.
git commands
# Clean .orig files with prompt
git clean -i
# Delete file from repo after it has been added to .gitignore
git rm --cached filename
# Search in commit messages for specific text
git log grep="Text to search for"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment