DEV Community

Discussion on: Git merge, git rebase, and crawling out of the git hole

 
ac000 profile image
Andrew Clayton

Often --amend is exactly what you want.

Maybe you need to re-word the commit message, add a Reviewed-by tag etc... or perhaps you just need to make a code change or you forgot to git add [-p] something...

I would say I use --amend a lot more often than squashing commits.

The right tool for the job and all that...