git 添加 .命令花费太多时间超过 30 分钟

git add . command taking too much time more than 30 minutes

git add . 花太多时间image of vs code terminal

我试过了:

git init

git commit -m "first commit"

git add .

现在可以正常使用了,但它花费了超过 30 分钟的时间..

我认为您不应该上传 node_modules 文件夹。
在主目录中创建一个 .gitignore 文件并在其中添加 /node_modules 这样它就不会每次都将文件夹上传到 git。