Last active
April 13, 2018 06:15
-
-
Save jianinz/c879647f7f8c43f2705d9d643571c640 to your computer and use it in GitHub Desktop.
Git diff and log cheat sheet
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
git diff A..B_ == git diff B..A | |
git diff A...B != git diff B...A | |
git log A..B != git log B..A | |
git log A...B == git log B...A | |
git diff A..B shows all differences made on either A or B if they are diverged | |
git diff A...B shows the changes in B that are not in A if it diverged from A | |
git log A..B walk through head of B back to head of A ( or current position of B back to current position of A) and prints out difference from B to A | |
git log A...B shows all commits difference made on either A or B if they are diverged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment