使用Notepad ++作为Git Bash编辑器 [英] Use Notepad++ as Git Bash editor

查看:192
本文介绍了使用Notepad ++作为Git Bash编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Github的新手,所以我决定使用Notepad ++作为Git Bash的编辑器,而不是Vim. 所以我关注了这篇文章 如何将Notepad ++(或其他)与msysgit一起使用?并在Git Bash中运行它

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"

然后,当我运行git commit时,Notepad ++将按预期方式打开.关闭Notepad ++并运行git status后,它说未跟踪以下文件:

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

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

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

推荐答案

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

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

这篇关于使用Notepad ++作为Git Bash编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆