Search code examples
gitbashnotepad++

Use Notepad++ as Git Bash editor-how to ignore untracked files


I am new to Github and I decided to use Notepad++ as Git Bash's editor instead of Vim. So I followed this post How do I use Notepad++ (or other) with msysgit? and ran this in Git Bash

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

Then when I ran git commit, Notepad++ would open up as expected. After I have closed Notepad++ and ran git status, it said that the following files were untracked:

noPlugin
nosession
notabbar
notcommited.txt

So the question is: should I add these files to git to track as well? Thanks!


Solution

  • Consider adding files that you want to keep, but not track, to your .gitignore file.