---
title: "Discussion on \"Updated your git ignore but files keep wanting to commit?\" | Hashnode"
description: "Discussion on \"Updated your git ignore but files keep wanting to commit?\". When updating your git ignore file to exclude a file and that file keeps being tracked, you need to clear your git cache. Below is a guide."
url: "https://hashnode.com/posts/updated-your-git-ignore-but-files-keep-wanting-to-commit/60e00a384f8e376422a76b2c"
---

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

Discussion

# [Updated your git ignore but files keep wanting to commit?](https://blog.azcodez.com/updated-your-git-ignore-but-files-keep-wanting-to-commit?utm_source=hashnode&utm_medium=feed)

When updating your git ignore file to exclude a file and that file keeps being tracked, you need to clear your git cache. Below is a guide.

Jul 3, 2021 · 1 min read · blog.azcodez.com  
Updated Aug 6, 2022  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#gitlab](https://hashnode.com/tag/gitlab)
-   [#bitbucket](https://hashnode.com/tag/bitbucket)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Asrin Dayananda](https://hashnode.com/@azcodez)

@azcodez · United Kingdom

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

Cloud & Software Engineer 👨‍💻

Software engineer focusing on PHP, JavaScript, HTML, CSS, CI/CD, GitHub, AWS, Azure &amp; Magento Commerce. I enjoy code for good projects, tech, gym, nature, travel, fried chicken, and coffee. All my articles are educational only from my experience. Feel free to connect.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
