Quickly amend a git commit by skipping edit
Here is the quickest way to amend a git commit
Here’s a useful thing I’ve learned today: you can skip editing the commit text when you amend a commit with git:
git commit --amend --no-edit
I wish I knew this earlier! ;-)
As an added bonus, you can also define an alias for this in your bash profile (only if you’re lazy like me):
alias amend='git commit --amend --no-edit'
If you like living “dangerously”, you can even put a git add -A in there, but personally I prefer not to.
That's it for today! ✨
Go Further

Want to go deeper?

About Sébastien
I'm Sébastien Dubois, and I'm on a mission to help knowledge workers escape information overload. After 20+ years in IT and seeing too many brilliant minds drowning in digital chaos, I've decided to help people build systems that actually work. Through the Knowii Community, my courses, products & services and my Website/Newsletter, I share practical and battle-tested systems.
I write about Knowledge Work, Personal Knowledge Management, Note-taking, Lifelong Learning, Personal Organization, Productivity, and more. I also craft lovely digital products and tools.
If you want to follow my work, then become a member and join our community.
Ready to get to the next level?
Looking for the right tools?
- 🚀 Obsidian Starter Kit — The best starting point for Obsidian
- 📖 PKM Library — 2,000+ curated tools & resources
- 📚 KM for Beginners — Learn to pick and use the right tools
- 🎯 Join Knowii — Community + ALL courses & tools
Found this valuable? Share it with someone who needs it.
