Created
April 19, 2011 08:51
-
-
Save chelmertz/927026 to your computer and use it in GitHub Desktop.
git & bash - common commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -l match_against in_files # -l only lists filenames | |
ls -1 # filenames STDIN ready | |
ls -x # space separated filenames | |
git show HEAD~1:index.html # what did I just commit? | |
git checkout HEAD~1 index.html # regret one file of a commit, not a complete rollback |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment