Reputation: 34109
I am using windows machine with notepad++ installed. I configured the editor using the following command
git config --global core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -nosession"
Then I created a new blank repository and added a "New Text Document.txt" file. Now when i execute "git commit" command it opens a new notepad++ instance with the texts.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: New Text Document.txt
#
Now i save the "COMMIT_EDITMSG" file by clicking save button in Notepad++ and close Notepad++ instance.
My expectation is, all commits are done. However if i run "git status" command it still shows file is not commited
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: New Text Document.txt
What else i need to do for committing the changes?
Upvotes: 2
Views: 547
Reputation: 736
you should look at Using Notepad++ as Git Editor without affecting settings which has this on one of the comments
[core]
autocrlf = true
editor = "'C:/PROGRA~2/NOTEPA~1/NOTEPA~1.EXE' -multiInst -notabbar -nosession -noPlugin"
Upvotes: 1