Created
July 12, 2013 11:39
-
-
Save toddlers/5983816 to your computer and use it in GitHub Desktop.
You can use the — option in git log to see the commit history for a file, even if you have deleted the file.
This file contains hidden or 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
# see the changes for a file, even if it was deleted | |
git log -- [file_path] | |
# limit the output to only the last commit that touched the file | |
git log -1 -- [file_path] | |
# include some statistics, eg. how many files were deleted | |
git log -1 --stat -- [file_path] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment