我見過有關使用記事本++和其他編輯器的git,但沒有關於使用PN2的文章。使用程序員的記事本2作爲編輯git
我試過放在下面的變化,但他們都不似乎工作:
git config --global core.editor "'C:\Program Files (x86)\Programmer's Notepad\pn.exe -allowmulti' -w"
我只是得到這樣的錯誤以下(這是後「git的承諾--amend」):
'C:\Program Files (x86)\Programmer's Notepad\pn.exe -allowmulti' -w: -c: line 0:
unexpected EOF while looking for matching `''
'C:\Program Files (x86)\Programmer's Notepad\pn.exe -allowmulti' -w: -c: line 1:
syntax error: unexpected end of file
error: There was a problem with the editor ''C:\Program Files (x86)\Programmer's
Notepad\pn.exe -allowmulti' -w'.
Please supply the message using either -m or -F option.
是否有可能得到這個工作?
**你想使用PN2的是什麼**?一般來說,git不需要編輯器,也不需要關心你用它做什麼,所以你需要解釋的是:你想用什麼來使用PN2,**完全**;你在哪裏使用了上述命令(cmd,powershall,bash)? –
我只是使用windows命令行來執行命令。我想使用pn2來輸入提交消息和交互式rebase。使用控制檯的默認git編輯器似乎打破了控制檯。我嘗試改變爲簡單的記事本(這是mercurial用於提交消息窗口的東西),但是這不適用於交互式變形,因爲它會使行結束。 – user673679
不知何故錯過了實際的git命令。我編輯它。: -/ – user673679