Git on Windows: GIT-Bash 环境的选美存储在哪里
Git on Windows: Where is pageant stored for GIT-Bash environment
从 GIT 开始,我将 plink 路径(通过 GIT 安装过程设置)设置为 GIT_SSH 环境变量。
后来我又重装了PuTTY,路径就移到了默认位置(C:\Program Files\PuTTY)。这适用于 Windows-command shell 但不适用于 GIT Bash。 GITBash还在老地方找
我现在想知道 BASH 将它存储在哪里以及我如何更改它。
这是我从 BASH 得到的:
$ git clone <user>@<server>:<repository-path>
Cloning into 'devtools'...
error: cannot spawn <oldPuttyPath>\plink.exe: Invalid argument
fatal: unable to fork
您可以在 ~/.bashrc
文件中添加 plink.exe
的路径:
export GIT_SSH='/c/Program Files/.../putty/plink.exe'
要重新加载配置,运行 source ~/.bashrc
。
今天没了。似乎是缓存问题。重启解决了,git clone if fine now
从 GIT 开始,我将 plink 路径(通过 GIT 安装过程设置)设置为 GIT_SSH 环境变量。
后来我又重装了PuTTY,路径就移到了默认位置(C:\Program Files\PuTTY)。这适用于 Windows-command shell 但不适用于 GIT Bash。 GITBash还在老地方找
我现在想知道 BASH 将它存储在哪里以及我如何更改它。
这是我从 BASH 得到的:
$ git clone <user>@<server>:<repository-path>
Cloning into 'devtools'...
error: cannot spawn <oldPuttyPath>\plink.exe: Invalid argument
fatal: unable to fork
您可以在 ~/.bashrc
文件中添加 plink.exe
的路径:
export GIT_SSH='/c/Program Files/.../putty/plink.exe'
要重新加载配置,运行 source ~/.bashrc
。
今天没了。似乎是缓存问题。重启解决了,git clone if fine now