---
title: "Discussion on \"How to add tracked files to .gitignore\" | Hashnode"
description: "Discussion on \"How to add tracked files to .gitignore\". At one point or the other, you might have committed some files or folders to your remote repo that after several commits you decide that you no longer want to track those files or folders and you try to edit directly the .gitignore file but it doesn'..."
url: "https://hashnode.com/posts/how-to-add-tracked-files-to-gitignore/5f0d60de02afcd6941857726"
---

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

Discussion

# [How to add tracked files to .gitignore](https://favourcodes.hashnode.dev/how-to-add-tracked-files-to-gitignore?utm_source=hashnode&utm_medium=feed)

At one point or the other, you might have committed some files or folders to your remote repo that after several commits you decide that you no longer want to track those files or folders and you try to edit directly the .gitignore file but it doesn'...

Jul 14, 2020 · 2 min read · favourcodes.hashnode.dev  
Read the article

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

## Written by

[Favour Adedapo](https://hashnode.com/@favourcodes)

@favourcodes · Lagos, Nigeria

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

Software Developer

I&#39;m a Frontend Developer for Web and Mobile, and UI/UX Enthusiast. I love creating beautiful and intuitive interfaces for users. I have an eye for design with a User-Driven Approach to Development. In my spare time, I work on ThreeJs, WebGL and various CSS Animations.

## Responses 1

Markdown supported · ⌘↵ to post

[Francisco Quintero](https://hashnode.com/@cesc1989)

[Jul 14, 2020](https://hashnode.com/posts/how-to-add-tracked-files-to-gitignore/5f0d60de02afcd6941857726/comment/5f0e130a1e2df8081694209c)

> this doesn't remove the history of the file or folder from your git history and make it appear as though it never existed

Doing that IT'S very complicated 😆

[Favour Adedapo](https://hashnode.com/@favourcodes)

[Jul 14, 2020](https://hashnode.com/posts/how-to-add-tracked-files-to-gitignore/5f0d60de02afcd6941857726/comment/5f0e130a1e2df8081694209c#reply-5f0e2dce8e5c6c08370d76b6)

Yes, it is.

It is almost like erasing all your digital footprints lol with is very difficult depending on how popular.
