---
title: "Discussion on \"Delete Pushed Commit\" | Hashnode"
description: "Discussion on \"Delete Pushed Commit\". Accidently pushed commit to wrong branch ? incomplete code ? With simple command you can delete the commit pushed on the remote.\nTo delete the commit, you need the last commit id, up to which you want to retain the commits. You can get the comment id..."
url: "https://hashnode.com/posts/delete-pushed-commit/65e679abd13f1d4ed68aa39e"
---

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

Discussion

# [Delete Pushed Commit](https://akashpate.com/delete-pushed-commit?utm_source=hashnode&utm_medium=feed)

Accidently pushed commit to wrong branch ? incomplete code ? With simple command you can delete the commit pushed on the remote. To delete the commit, you need the last commit id, up to which you want to retain the commits. You can get the comment id...

Feb 24, 2024 · 1 min read · akashpate.com  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#commit](https://hashnode.com/tag/commit)

## Written by

[Akash Pate](https://hashnode.com/@akashpate)

@akashpate · Nashik, India

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

Backend Developer

Hi! I'm Akash, a backend developer based in Nashik, India 🇮🇳. I create robust backend &amp; design APIs across technologies. Over the past 3 years, I've worked with a diverse range of clients, from various domains like finance, health, education, etc. I love crafting products/ solutions that delight users and help businesses grow.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
