Git Handbook for power users
I’ve documented a collection of useful Git commands that I use in my work. Feel free to contribute your suggestions by creating a PR on github. Change the commit message of last commit Use this when you want to edit the message of your most recent commit without creating a new one. git commit --amend Squash commit branch B to branch A This merges changes from branch-B into branch-A as a single commit, which helps keep the commit history clean. ...