我刚刚安装了Git For Windows,并通过Cygwin使用SSH创建了我的SSH密钥.它似乎是从命令行和Git For Windows GUI工作,但现在我想使用TortoiseGit.TortoiseGit默认使用类似Putty的SSH客户端,但显然GitHub只接受(开放)SSH,我真的不知道如何继续.我将做一个干净的TortoiseGit安装,我已经安装了Cygwin和Git for Windows.
我是 Git 的新手(2 天前刚开始)。我正在尝试创建一个项目来练习我从这里学到的基本命令。
到目前为止,我在哪里:
README.md在项目中添加了一个。develop。[成功]在我的本地文件夹中C:\gitprojects,设置 globaluser.name并user.email使用以下命令:
git config --global user.name <my user name>git config --global user.email <my-email>[成功]C:\gitprojects使用命令将项目克隆到我的本地文件夹中git clone https://flamedenise19@gitlab.com/flamedenise19/speedtyping.git
git checkout -b "develop"。test.txt在本地根文件夹手动添加一个新文件用于测试推送。git commit -m "adds test.txt"git push origin develop现在,我被困在这个push部分。输入后git push origin …
我在服务器上设置git和gitosis来管理我的回购.它适用于我设置的初始shell帐户,即我可以运行:
git clone git@MYSERVER:gitosis-admin.git
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试使用我创建的单独帐户(通过gitosis.conf)时,它一直要求输入密码:
git clone johndoe@MYSERVER:gitosis-admin.git
Run Code Online (Sandbox Code Playgroud)
我设置了SSH密钥并将副本推送到服务器上的keydir.这个问题似乎解决了同样的问题,但给出的解决方案是tortoisegit.
我怎么告诉git使用ssh密钥而不是要求输入密码?