因此,我现在正在尝试学习如何使用git,并且正在学习Udacity git教程。在我添加到暂存区并提交后,我的文本编辑器(N++)打开,并收到以下消息:
C:\Users\myUserName\version-control\reflections\\-w doesn't exist. Create it?如果我单击“是”,它会创建-w文件,并要求我填写提交消息,然后一切正常,除了我的目录中有一个-w文件。
如果单击"No",则无需创建-w文件即可正常工作。
有人能帮我解决这个问题吗?我觉得在设置工作区时,我可能忘记了引用或类似的东西。
以下是我运行的命令(可能输入错误):
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -n -w"
git config --global push.default upstream
git config --global merge.conflictstyle diff3发布于 2015-06-17 09:19:15
糟了。原来-n和-w是sublime的意思。这适用于Notepad++:
“‘C:/程序文件(X86)/记事本++/记事本++.exe’-multiInst -notabbar -nosession -noPlugin”
https://stackoverflow.com/questions/30880761
复制相似问题