我已经在我的Windows PC上安装了git,当我git config --global使用powershell或cmd.exe 运行时,它正在写入此文件C:\c\Users\xxx\.gitconfig.
当我在git-bash中运行git config命令时,它正在运行此文件:
C:\Users\xxx\.gitconfig
c\文件夹来自哪里?我不明白.
我怎么能告诉powershell和cmd.exe使用与git-bash相同的文件?
我找到了问题的原因:我之前安装了Cygwin,并且它HOME在我的PC上将环境变量设置为c\\Users\\xxx. That\xe2\x80\x99s why PowerShell and cmd.exe were locating the file in that folder.
| 归档时间: |
|
| 查看次数: |
204 次 |
| 最近记录: |