One Command to Change the Last Git Commit Message

🔥 Hot-tip: Do you mess up git commit messages quite often? I DO!

Most of the time I have to amend the last git commit message. So, I made a small bash function out of it.

⚠️ Avoid --force unless it is absolutely necessary and you can be sure that nobody else is syncing your project at the same time.

✅ Amend git commit in one go 🤖 Put it in .bashrc/.zshrc etc files 👌 Sharing this quick-tip is a fun thing to do

--

--

Award-winning DevRel Eng. ❯ NodeCLI.com ❯ VSCode.pro ❯ Google Developers Expert ❯ Node.js Community Committee ❯ WordPress Core ❯ Self-confessed tech comedian!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmad Awais ⚡️

Award-winning DevRel Eng. ❯ NodeCLI.comVSCode.pro ❯ Google Developers Expert ❯ Node.js Community Committee ❯ WordPress Core ❯ Self-confessed tech comedian!