Quickly amend a git commit by skipping edit

Here is the quickest way to amend a git commit

Git logo, marking a quick tip to amend the last commit without opening the editor

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

Tips and Tricks to boost your productivity with VSCode
Tips and tricks to use VSCode like a pro
How to use a proxy to bypass firewalls in corporate environments
In medium to large companies, it’s almost always the case that your Web traffic has to go through a corporate proxy to reach the Web. Here’s how to find out more about those proxies and how to use them from your tools and terminals
Git tutorial for beginners — Part 4: Branches
Let’s now learn about Git branches!

Want to go deeper?

Knowii Community - Master Knowledge Management + AI | From €4.99/month
Join 400+ members mastering Knowledge Management AND AI. Community + Courses + Tools integrated. €500+ value in Knowledge Master tier.

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?

Found this valuable? Share it with someone who needs it.

Join 6,000+ readers. Get practical systems for knowledge & AI. Free.

Subscribe ✨

Free: Knowledge System Checklist

A clear roadmap to building your own knowledge system. Subscribe and get it straight to your inbox.

6,000+ readers. No spam. Unsubscribe anytime.