git-see the changes in a commit

To see the diff got committed in particular commit message use one of the following commands git show COMMIT OR git diff COMMIT^ COMMIT Further reading : git diff git show


Squash multiple commits into one

Premature commits happen all the time. And often you want to squash all those premature commit into one meaningful commit  to keep your commit history clean, easily readable and more meaningful. It’s quite easy to...


Git amend previous commit

Rewriting commit history with git Premature commits happen by accident more often than not. Sometimes you just missed adding a file or maybe you realized that you should have added a much more descriptive...