Created
September 25, 2020 01:39
-
-
Save sheronw/b358a2806594cf2ab7fd420e569907f3 to your computer and use it in GitHub Desktop.
compare between different state #git
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
# 1. committed | |
# 2. staged but not comitted | |
# 3. not added to stage | |
# compare between 2 & 3 | |
git diff [file] | |
# compare between 1 & 2 | |
git diff [file] --cached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment