# How to replace 'codecrafters submit' commit messages the 'official' way?

**URL:** <https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824>\
**Category:** Feature Requests\
**Created:** [January 24, 2026, 6:18pm UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824 "2026-01-24T18:18:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmpasswd](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rmpasswd/32/4153_2.png) [@rmpasswd](https://forum.codecrafters.io/u/rmpasswd)\
**Post date:** [January 24, 2026, 6:18pm UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824/1 "2026-01-24T18:18:18Z")

</div>

`warning: not an advanced git user`

My goal is to change these generic commit messages in my github repo.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/d/5/d5f859342b563990c3b193ef83f710cd29bf6eff.png)

I used `git commit –ammend` and it seems to work when i checked using `git log .`But after I used `codecrafters submit` for the next task, it somehow created another branch and threw a branch conflict error.

I solved that conflict with `git pull –rebase` but i am again left with these generic commit messages instead of someting like “feat: added autocomplete support in shell via readline”

When the branch conflict happens I notice that the ‘master’ and the ‘origin/master’ heads are attached to two different commits; `git pull –rebase` fixes that and this is the result, the heads are pointed at the same commit now:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/1/f/1f52220ddee4b081fb043ef2b2aefe4554c2612e.png)

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [January 24, 2026, 11:56pm UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824/4 "2026-01-24T23:56:53Z")

</div>

@rmpasswd if we supported `codecrafters submit -m "xyz"`, do you think you’d use it? Or would you only want to update these messages after the fact?

For your current situation, you can use `git rebase --interactive <earliest_commit>` ([tutorial](https://hackernoon.com/beginners-guide-to-interactive-rebasing-346a3f9c3a6d)) to reword all the commits you need, and then do a force push (`git push -f origin master`) to ensure CodeCrafters sees the latest messages. It’ll automatically sync the force-pushed state to your GitHub too.

---

<div class="post-metadata">

**Author:** ![yinchi](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/yinchi/32/23920_2.png) [@yinchi](https://forum.codecrafters.io/u/yinchi)\
**Post date:** [March 9, 2026, 5:46am UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824/6 "2026-03-09T05:46:36Z")

</div>

Since each stage has a code and title, e.g. “UN3 Append stderr”, I’d make the commit message something like “codecrafters submit UN3 Append stderr”. In fact, I think it ought to be the default message if the user doesn’t provide “-m”.

---

<div class="post-metadata">

**Author:** ![anirudhranganath](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/anirudhranganath/32/24408_2.png) [@anirudhranganath](https://forum.codecrafters.io/u/anirudhranganath)\
**Post date:** [April 13, 2026, 9:14am UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824/7 "2026-04-13T09:14:38Z")

</div>

Just wanted to say I was looking for this as well. Either works but personally I would like an amendable commit message (``codecrafters submit -m "xyz"`). Not sure if there’s a way to upvote this feature request!

---

<div class="post-metadata">

**Author:** ![anirudhranganath](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/anirudhranganath/32/24408_2.png) [@anirudhranganath](https://forum.codecrafters.io/u/anirudhranganath)\
**Post date:** [April 18, 2026, 10:16am UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824/8 "2026-04-18T10:16:35Z")

</div>

Was about to see if I could code this but looks like someone beat me to it 🙂 [feat: custom commit message on submit by 0xhasann · Pull Request #82 · codecrafters-io/cli · GitHub](https://github.com/codecrafters-io/cli/pull/82)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 23, 2026, 5:20am UTC](https://forum.codecrafters.io/t/how-to-replace-codecrafters-submit-commit-messages-the-official-way/15824/10 "2026-04-23T05:20:37Z")

</div>

Good news, we’ve merged the PR by @0xhasann that adds support for custom commit messages.

After [upgrading your CLI to the latest version](https://docs.codecrafters.io/cli/update), you can use it like this:

```auto
codecrafters submit -m "describe your changes"

```

Let me know if you run into any issues!
