我注意到core.autocrlf
我跑的时候有两个列表git config -l
$ git config -l
core.symlinks=false
core.autocrlf=false
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
user.name=name
user.email=email@example.com
core.autocrlf=true
Run Code Online (Sandbox Code Playgroud)
最后3个(来自user.name)是我C:\users\username\.gitconfig
文件中唯一的.所有其他的来自哪里?为什么core.autocrlf列出两次?
这是使用msysgit 1.8.3,我也安装了SourceTree(Windows 7).在SourceTree中,我取消选中"允许SourceTree修改全局Git配置文件"
ProgramData
Windows中文件夹的重要性是什么?
我注意到许多已安装的程序将文件存储在该ProgramData
文件夹的子目录中.有具体原因吗?
我必须为我的应用程序创建一个安装程序.我应该将用户级文件存储在ProgramData
或低于Users
?
最近,我在线更改了我唯一的Github帐户的密码。从那时起,每次我在本地计算机上使用 git 执行任何操作时,它都会不断询问我的用户名和密码。我阅读了如何更新 Git 的密码?和https://help.github.com/articles/updating-your-github-access-credentials/。
Git 不断提示我输入密码和git : osxkeychain credential helper Silently failed to Remember username/password 的问题与我的类似,只是我没有使用 SSH(或者如果 git 确实使用 ssh,我不知道它。我的 .ssh目录不包含任何关于 Github 的内容)。
我的钥匙串应用程序中曾经有一个 github 项目。由于事情不起作用,我选择删除它,现在当我在某些 github 操作中输入我的用户名和密码时,不会自动创建新项目。
尝试git config --global credential.helper osxkeychain
产生以下错误
$ git config --global credential.helper osxkeychain
warning: credential.helper has multiple values
error: cannot overwrite multiple values with a single value
Use a regexp, --add or --replace-all to change credential.helper.
Run Code Online (Sandbox Code Playgroud)
这是输出git config -l
:
git config -l
credential.helper=osxkeychain …
Run Code Online (Sandbox Code Playgroud) git ×2
git-config ×1
github ×1
keychain ×1
macos ×1
msysgit ×1
programdata ×1
ssh ×1
windows ×1