我在我的 Ubuntu 机器上使用 git 和我现有的 ssh 密钥。
现在我必须在 Windows 7 上使用 Git,并且需要使用相同的密钥对。
我已经设置了 msysgit 并.ssh在Users\username\.ssh.
我已将我的密钥对从 Ubuntu 的.ssh文件夹复制到此文件夹。
但是当我尝试克隆 Git 存储库时,它会停止并要求输入密码。
根据一些教程,在 msysgit 安装期间我应该有一些关于 的选项ssh,但我没有看到。
你有什么建议来解决这个问题吗?
我安装了Windows 7。
C:\是本地驱动器。 H:\是一个工作网络驱动器,每次启动时都会不断重新安装。我已经学会了在我在家进行任何编码或安装与编码相关的应用程序时断开它,因为我往往会遇到问题。
我第一次安装了 Git 并尝试创建一个存储库。
它给了我以下错误:
error: could not lock config file H:\/.gitconfig: No such file or
directory error: could not lock config file H:\/.gitconfig: No such
file or directory
while executing "exec {C:/Program Files/Git/libexec/git-core/git-config.exe} --global --add
gui.recentrepo C:/Users/bmyhre/Desktop/Testing/projects/skeleton"
("eval" body line 1)
invoked from within "eval exec $opt $cmdp $args"
(procedure "git" line 23)
invoked from within "git config --global --add gui.recentrepo $path"
(procedure "_append_recentrepos" line 16)
invoked from within "_append_recentrepos [pwd]"
(procedure "_git_init" line …Run Code Online (Sandbox Code Playgroud)