简体   繁体   English

带有 local.git 存储库的 vscode 说“活动更改太多”

[英]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.

相关问题 VSCode 中的活动更改过多 - Too many active changes in VSCode '/Users/theartist' 的 git 存储库有太多活动更改,将仅启用 Git 功能的子集 - The git repository at '/Users/theartist' has too many active changes, only a subset of Git features will be enabled “'/home/upulie/Desktop' 中的 git 存储库有太多活动更改,只有 Git 功能的子集将被启用” - "The git repository at '/home/upulie/Desktop' has too many active changes, only a subset of Git features will be enabled" VS Code - git 存储库有太多活动更改,将仅启用 Git 功能的一个子集 - VS Code - The git repository has too many active changes, only a subset of Git features will be enabled GIT > 20k 新文件阻塞了 VSCode UI,“活动更改过多” - GIT > 20k new files chokes VSCode UI, "Too many active changes" VS Code - 'c:\Users\myname' 的 git 存储库有太多活动更改,将仅启用 Git 功能的一个子集 - VS Code - The git repository at 'c:\Users\myname' has too many active changes, only a subset of Git features will be enabled git vscode 太多无法显示 - git vscode too many to show Git将更改从一个本地存储库移动到另一本地存储库 - Git moving changes from one local repository to another local repository git push 不将本地更改提交到远程存储库 - git push not submitting local changes to remote repository Git-从本地存储库还原已提交的更改 - Git - revert committed changes from local repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM