# VS Code - Has 10k files that need to be commit

**URL:** <https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969>\
**Category:** General\
**Created:** [November 6, 2023, 1:23pm UTC](https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969 "2023-11-06T13:23:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ard](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ard/32/349206_2.png) [@ard](https://forum.freecodecamp.org/u/ard)\
**Post date:** [November 6, 2023, 1:23pm UTC](https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969/1 "2023-11-06T13:23:22Z")

</div>

Hello guys, when I open my VS Code, this pops up: “The git repository at “/Users/myUsername” has too many active changes, only a subset of Git features will be enabled.” - Can someone help me to get rid of this

---

<div class="post-metadata">

**Author:** ![zaklina](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zaklina/32/221235_2.png) [@zaklina](https://forum.freecodecamp.org/u/zaklina)\
**Post date:** [November 6, 2023, 4:48pm UTC](https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969/2 "2023-11-06T16:48:17Z")

</div>

You can use the `git status` command in the terminal to see what untracked files exist in your repository. You can either commit these files or add them to your `.gitignore` to prevent Git from tracking them.

If you’re unable to commit or stash your changes and need to quickly get back to a clean state:

```auto
git reset --hard
git clean -df

```

this will forcefully remove all uncommitted changes, including untracked files.

---

<div class="post-metadata">

**Author:** ![moT01](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mot01/32/417588_2.png) [@moT01](https://forum.freecodecamp.org/u/moT01)\
**Post date:** [November 6, 2023, 5:51pm UTC](https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969/3 "2023-11-06T17:51:23Z")

</div>

My guess is that the node\_modules aren’t being ignored. Add `node_modules` to a `.gitignore` file.

---

<div class="post-metadata">

**Author:** ![DanCouper](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dancouper/32/158608_2.png) [@DanCouper](https://forum.freecodecamp.org/u/DanCouper)\
**Post date:** [November 11, 2023, 10:58pm UTC](https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969/4 "2023-11-11T22:58:27Z")

</div>

Is that your home directory?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [May 12, 2024, 10:59am UTC](https://forum.freecodecamp.org/t/vs-code-has-10k-files-that-need-to-be-commit/648969/5 "2024-05-12T10:59:14Z")

</div>

Closed on May 12, 2024, 10:59am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
