Last active
March 3, 2017 03:10
-
-
Save amagee/319eec0f6c3e529d33a3cf7d1400e34d to your computer and use it in GitHub Desktop.
Git stuff
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
# Find commit that deleted a line, given some content in the line | |
$ git log -S<content> | |
# Show file at a particular revision | |
$ git show <revision>:<file_path> | |
# Abort a merge | |
$ git merge --abort | |
# Get commits in one branch that aren't in another branch | |
$ git log <commits_not_in_branch>..<commits_in_branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment