---
title: "Discussion on \"How to remove or modify files in the Git commit\" | Hashnode"
description: "Discussion on \"How to remove or modify files in the Git commit\". It happens to every Developer while committing their code, by mistake they commit some unwanted files or code. Instead of creating a new commit, we can fix this mistake in the same commit. \nUse the below command to change the position of HEAD of your..."
url: "https://hashnode.com/posts/how-to-remove-or-modify-files-in-the-git-commit/5ffd38dc457644085faf0a5b"
---

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

Discussion

# [How to remove or modify files in the Git commit](https://tutorialflix.hashnode.dev/how-to-remove-or-modify-files-in-the-git-commit?utm_source=hashnode&utm_medium=feed)

It happens to every Developer while committing their code, by mistake they commit some unwanted files or code. Instead of creating a new commit, we can fix this mistake in the same commit. Use the below command to change the position of HEAD of your...

Jan 12, 2021 · 2 min read · tutorialflix.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#bitbucket](https://hashnode.com/tag/bitbucket)
-   [#version-control](https://hashnode.com/tag/version-control)

## Written by

[Vaibhav Bhootna](https://hashnode.com/@tutorialflix)

@tutorialflix · Singapore

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

Software Engineering Enthusiast!

I am a Software Engineer with around 9 years of experience in Java, Spring, and Microservices.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
