关于Git,TortoiseGit,码云 上传代码碰到的问题记录及解决

关于Git,TortoiseGit,码云 上传代码碰到的问题记录及解决记录


问题一:
在使用 TortoiseGit 客户端将远程代码 Pull, Clone 到本地的时候,出现异常,并提示错误信息 “ Disconnected: No supported authentication methods available(server sent: publickey) ”
解决:
没有支持的认证方法 ”,我们需要修改 TortoiseGit 网络的 SSH 客户端为 git 服务器的 ssh.exe (前提条件:本地必须已经安装 git 服务器)。
在修改前,TortoiseGit 使用的是自己的 TortoiseGitPlink.exe 作为 SSH 客户端,鼠标右键 -> TortoiseGit -> Settings -> Network -> SSH Client 项 点击 “ Browser ” 找到在本地安装的 git 服务的根目录 -> Git -> usr -> bin 目录下选中 ssh.exe ,再点击打开即可
应用后就ok

问题 二
remote: Incorrect username or password ( access token )
fatal: Authentication failed
解决:
打开电脑的 控制面板(win + R 输入 control 回车也能进入控制面板) --> 用户账户 --> 管理windows凭借 普通凭据里找到git的,编辑就行

git 常用命令:

测试ssh keys是否设置成功。
  ssh -T [email protected]
  The authenticity of host ‘github.com (192.30.252.129)’ can’t be established.
  RSA key fingerprint is 16:27:xx:xx:xx:xx:xx:4d:eb:df:a6:48.
  Are you sure you want to continue connecting (yes/no)? yes #确认你是否继续联系,输入yes
  Warning: Permanently added ‘github.com,192.30.252.129’ (RSA) to the list of known hosts.
  Enter passphrase for key ‘/c/Users/xxxx_000/.ssh/id_rsa’: #生成ssh kye是密码为空则无此项,若设置有密码则有此项且,输入生成ssh key时设置的密码即可。
  Hi xxx! You’ve successfully authenticated, but GitHub does not provide shell access. #出现此句话,说明设置成功。

你可能感兴趣的:(Git)