如何git 将Visual Studio 中有文件的文件夹逐个上演代码?

How to git stage an one by one the folder with files in Visual Studio Code?

我有一个包含其他子文件夹的文件夹。然后在每个子文件夹中有许多文件(超过 1000 个)。我想暂存,一次提交每个子文件夹(不是一次提交所有子文件夹)。

我 VSCode 是否有一种方法来完成这种简单的表单界面?因为我不想一个一个添加1000个文件去点+号。

您可以通过集成终端轻松完成此操作。您可以选择一次添加和提交一个目录。

git status */

将显示 unstaged/modified 个目录

On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        img/test.txt

nothing added to commit but untracked files present (use "git add" to track)

在这里您可以一次一个地暂存您的目录。这是一种简单快捷的方法。现在您只需在暂存目录后每次提交即可。