1

実行するgit config -lと 2core.editorつ表示されます 正しいもの (notepad.exe) は .gitconfig に追加されていますが、残念ながらもう 1 つが表示されます。どうすれば削除できますか? それはどのファイルに保存されていますか?

core.symlinks=false
core.autocrlf=false
core.editor='C:/windows/system32/notepad.exe'
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
alias.hist=log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
core.editor='C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
gui.wmstate=normal
gui.geometry=1061x860+80+51 171 192
4

1 に答える 1

3

Git は、次の 3 つの場所で構成設定を探します。

/etc/gitconfig
~/.gitconfig
.git/config

これらは、それぞれシステム全体、ユーザーごと、およびリポジトリごとの設定です。より具体的な設定は、より一般的な設定をオーバーライドします (たとえば、リポジトリごとのオーバーライドはユーザーごとにオーバーライドされます)。それらを取得/設定する便利な方法はgit config --system、 、git config --globalおよびを使用することgit configです。

于 2013-09-01T23:53:46.180 に答える