# Vscode to github: too many changes (10k) being committed

**URL:** <https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939>\
**Category:** General\
**Created:** [August 6, 2023, 6:08pm UTC](https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939 "2023-08-06T18:08:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mugao-joy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mugao-joy/32/324864_2.png) [@Mugao-joy](https://forum.freecodecamp.org/u/Mugao-joy)\
**Post date:** [August 6, 2023, 6:08pm UTC](https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939/1 "2023-08-06T18:08:00Z")

</div>

i can not find the repository button on my source tab on vscode. this is because there is too many changes trying to be commited . (10K from the source tab) these changes are irrelevant and dont need to be pushed to github. most are files i have in my computer. i tried erasing one and it was completely erased from my files in the computer. i have watched countless videos on yt and none seems to help.  
i will appreciate any help i can get.

---

<div class="post-metadata">

**Author:** ![DanielHuebschmann](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/danielhuebschmann/32/415871_2.png) [@DanielHuebschmann](https://forum.freecodecamp.org/u/DanielHuebschmann)\
**Post date:** [August 7, 2023, 11:16am UTC](https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939/2 "2023-08-07T11:16:38Z")

</div>

Welcome to the forum!

Are you building a JavaScript/ JS framework app ? It sounds like you are trying to push Node/Express server files to GitHub.

You can prevent certain data from being commited in your .gitignore file.

Here’s a tutorial including a list of files that should be ignored:

> **[.gitignore file - ignoring files in Git | Atlassian Git Tutorial](https://www.atlassian.com/git/tutorials/saving-changes/gitignore)**
>
> Git ignore patterns are used to exclude certain files in your working directory from your Git history. They can be local, global, or shared with your team.

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [August 7, 2023, 7:36pm UTC](https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939/3 "2023-08-07T19:36:38Z")

</div>

1. You need to git init from inside the project root folder. It should only track the relevant project files.

2. You need to `.gitignore` dependencies like the `node_modules` folder.

* * *

I would suggest you start over.

If you did the init outside the project folder find and delete the `.git` folder that was created by accident (you need to be able to see hidden files and folders).

Then run git init from a terminal that is opened inside your project folder. If you open the project folder inside VS Code the integrated terminal will open in the correct location.

Then create a `.gitignore` file inside the root project folder and add `node_modules` to it.

---

<div class="post-metadata">

**Author:** ![Mugao-joy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mugao-joy/32/324864_2.png) [@Mugao-joy](https://forum.freecodecamp.org/u/Mugao-joy)\
**Post date:** [August 9, 2023, 11:23am UTC](https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939/4 "2023-08-09T11:23:15Z")

</div>

This worked . for anyone else that may encounter the same issue in the future, if you cant find the .git file in file explorer try doing it from the command/power shell with admin rights.

---

<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:** [February 7, 2024, 11:23pm UTC](https://forum.freecodecamp.org/t/vscode-to-github-too-many-changes-10k-being-committed/627939/5 "2024-02-07T23:23:28Z")

</div>

Closed on February 7, 2024, 11:23pm UTC

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