[英]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.我的项目以前是PhCharm开发的,本地版本控制,内置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."就在最近它被转移到 VSCode,但每次加载项目时,它都会说“‘XXXX’处的 git 存储库有太多活动更改,只有 Git 功能的子集将被启用。” 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.这基本上意味着我现在不能在 VSCode 中使用内置的 git。 What can I do to use the VSCode's git functions with my project?如何在我的项目中使用 VSCode 的 git 函数?
Thanks!谢谢!
You have too many untracked files and git stops working at its full capability.您有太多未跟踪的文件,并且 git 停止发挥其全部功能。
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...要解决此问题,您需要创建一个.gitignore
文件以满足您的需求,并帮助您不跟踪由自动化工具、打包系统等生成的文件......
If you need more information on how to create a .gitignore
, you can try to do some research, there's plenty of useful docs.如果您需要有关如何创建.gitignore
的更多信息,可以尝试做一些研究,这里有很多有用的文档。
I suggest you to take a look at the .gitignore
files provided by Github.我建议你看看 Github 提供的.gitignore
文件。
You can find them here: https://github.com/github/gitignore你可以在这里找到它们: https://github.com/github/gitignore
If you are using Python, you may found useful this one: python.gitignore如果您使用的是 Python,您可能会发现这个有用: 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.基本上,搜索最适合您使用的语言的文件并将其复制到项目根目录中名为.gitignore
的文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.