Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created September 14, 2018 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/73859cbe030898501095226c0f78123a to your computer and use it in GitHub Desktop.
Save ahmadawais/73859cbe030898501095226c0f78123a to your computer and use it in GitHub Desktop.

🔥 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.

https://gist.github.com/12714738592097ad6cdfa3184f47d6b0

⚠️ 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

{%tweet 1040539814536392709 %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment