Compare Changes Between Commits With Git Oct 27
I’m doing a lot of code reverting today. This is my lifesaver:
# Compare a previous commit with your working copy # git diff PREVIOUS_COMMIT -- path/to/file.rb git diff d60a5e5 -- app/controllers/index_controller.rb
I find myself spending more time in the git man pages lately, and learning heaps.