0

I am new to git functions and I wrote a set of code, I intend to push it to Github but my commit report is showing over 5000 files, I do not know where such heavy set of commits emanated from. Please help!

The image for the commit box is shown below:enter image description here

Sam Bayo
  • 143
  • 1
  • 11

2 Answers2

1

Had the exact same problem.

In Vscode open the drop down "SOURCE CONTROL REPOSITORIES" at the top of the source control panel.

Then right click on the repo which is incorrectly set and select Close Repository.

Here is a visual of the answer

enter image description here

Pratik Fagadiya
  • 1,195
  • 7
  • 21
Vegozzy
  • 91
  • 1
  • 3
0

You have a lot of files in folders you do not want to be pushing. The .cache folder for example. You can fix this by creating a .gitignore file containing the paths that you don't want to push.

For example, to add the .cache folder to .gitignore, you can use.

.cache

Figure out which files you want to push to github, and which you should not be pushing. Also, if you have already pushed any files to the repo that are included in the .gitignore, you will need to remove them.

The Otterlord
  • 1,680
  • 10
  • 20