---
title: "Comment by Umair Hafeez on \"Git basics: Changing your last commit message\" | Hashnode"
description: "Awesome, I never knew about --force-with-lease flag. I learned something new today, thanks to you!"
url: "https://hashnode.com/posts/git-basics-changing-your-last-commit-message/62d65c4fd3af5e3713d5eadb/comment/62dad184e3b09e6748885e60"
---

[Discussion](https://hashnode.com/posts/git-basics-changing-your-last-commit-message/62d65c4fd3af5e3713d5eadb)

Comment [Git basics: Changing your last commit message](https://hashnode.com/posts/git-basics-changing-your-last-commit-message/62d65c4fd3af5e3713d5eadb)

[Umair Hafeez](https://hashnode.com/@umairhafeez)

[Jul 22, 2022](https://hashnode.com/posts/git-basics-changing-your-last-commit-message/62d65c4fd3af5e3713d5eadb/comment/62dad184e3b09e6748885e60)

Awesome, I never knew about `--force-with-lease` flag. I learned something new today, thanks to you!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Jul 23, 2022](https://hashnode.com/posts/git-basics-changing-your-last-commit-message/62d65c4fd3af5e3713d5eadb/comment/62dad184e3b09e6748885e60#reply-62db87d538759e6b498294a8)

Yep!

I literally wrote this article and yesterday forgot about applying the `--force-with-lease` myself 🤦‍♂️

Super cool option to keep the history clean when it's only a commit message fix.
