使用 Notepad++ 作为 Git Bash 编辑器

Use Notepad++ as Git Bash editor

我是 Github 的新手,我决定使用 Notepad++ 作为 Git Bash 的编辑器而不是 Vim。 所以我跟着这个 post How do I use Notepad++ (or other) with msysgit? 和 运行 这在 Git Bash

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

然后当我 运行 git commit 时,Notepad++ 会按预期打开。在我关闭 Notepad++ 和 运行 git status 后,它说以下文件未被跟踪:

noPlugin
nosession
notabbar
notcommited.txt

所以问题是:我是否也应该将这些文件添加到 git 以进行跟踪? 谢谢!

考虑将您想要保留但不想跟踪的文件添加到您的 .gitignore 文件中。