Compare Changes Between Commits With Git
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.
Posted on Oct 27, 2009
|
Add a comment
Add a Comment