简体   繁体   中英

vscode with a local .git repository saying “too many active changes”

My project used to be developed by PhCharm, and was version-controlled locally with its built-in git function. Just lately it is shifted to VSCode, but every time loading the project, it says "The git repository at 'XXXX' has too many active changes, only a subset of Git features will be enabled." If I modified a file, it doesn't even show up in the "Source Control" pane. It basically means I cannot use the built-in git now in VSCode. What can I do to use the VSCode's git functions with my project?

Thanks!

You have too many untracked files and git stops working at its full capability.
To fix the issue, you need to create a .gitignore file that fits your needs and helps you to not track file generated by automation tools, packaging systems, etc...

If you need more information on how to create a .gitignore , you can try to do some research, there's plenty of useful docs.

I suggest you to take a look at the .gitignore files provided by Github.
You can find them here: https://github.com/github/gitignore
If you are using Python, you may found useful this one: python.gitignore
Basically, search the file that best fit the language you are using and copy it in a file named .gitignore in the root of your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM