---
title: "Discussion on \"Edit last commit message in Github\" | Hashnode"
description: "Discussion on \"Edit last commit message in Github\". Run git commit --amend -m \"New commit message\" in command line to edit last commit message"
url: "https://hashnode.com/posts/edit-last-commit-message-in-github/63a1b0b11c6a9c7127279b36"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Edit last commit message in Github](https://abhin1509.hashnode.dev/edit-last-commit-message-in-github?utm_source=hashnode&utm_medium=feed)

Run git commit --amend -m "New commit message" in command line to edit last commit message

Dec 20, 2022 · 1 min read · abhin1509.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#gitcommands](https://hashnode.com/tag/gitcommands)
-   [#gitlab](https://hashnode.com/tag/gitlab)
-   [#github-copilot](https://hashnode.com/tag/github-copilot)

## Written by

[Abhinav Kumar](https://hashnode.com/@abhin1509)

@abhin1509

  
[View profile](https://hashnode.com/@abhin1509)

AWS Serverless developer

AWS Serverless developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
