-
See changed files between GIT commits
Problem You want to see the changed files between two commits in a GIT repository, e.g. to upload only changes to a webserver. Solution git diff –name-only SHA1 SHA2 Sample git diff –name-only 71d9def3c587ca8d26b8140560f6bb3c89ec9593 HEAD Sources http://stackoverflow.com/a/1552353
-
Compact and pretty GIT log
Problem You want to see all your commits of a git repository but the default “git log” output is not very nicely formatted and verbose. Solution Use the following command: git log –author=”Your Name” –pretty=”%C(yellow)%h%Cred%d%Creset %s%C(white), %C(green)%ar%Creset” The output will look like this: Of course you could also remove the –author parameter or add the –graph parameter…