git - Powershell 在每次 pull 时而不是在启动时要求 git RSA 密码?

标签 git powershell posh-git

我已经安装了 PoshGit,并且已经在 github 和我的 ~\.ssh 文件夹中设置了我的 RSA key ,但 PowerShell 仍然提示我在每次 pull/推时输入密码。我已按照所有说明进行操作 given here .我的 powershell 配置文件如下所示:

$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
. 'C:\Users\Caleb\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'
cd ~\Documents\GitHub\travefy

事情是这样的。如何让它只在启动时询问我?

enter image description here

最佳答案

原来我需要运行

> ssh-add

我不确定为什么 github.com 上的任何文档中都没有提到这一点。

关于git - Powershell 在每次 pull 时而不是在启动时要求 git RSA 密码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16445707/

相关文章:

git 在推/pull 之前输入密码

git - 保护git存储库中的文件

powershell - 使用ValidateSet()和ValidatePattern()允许新值?

git blame 使用 -L <n,m> 选项抛出一个错误的修订错误

git - 将 git 链接到 Homebrew 软件时出错

svn - 用 git-svn cherry-pick

node.js - 如何在 package.json 的脚本中运行多个 powershell 命令

syntax - 使用PowerShell将选项卡写入文件

powershell - 在 Visual Studio 包管理器中安装 posh-git