git本地操作时提示输入密码,但是密码错误的问题

git操作时输入密码不正确

git执行pull,push,fetch等操作后要求输密码,输密码后提示密码错误,报错信息:

$ git remote update origin --prune
Fetching origin
[email protected]'s password:
Permission denied, please try again.

参考博文:https://www.cnblogs.com/JaminXie/p/11103806.html

错误属于上文中第二种私钥错误的情况

使用命令,添加认证到ssh

ssh-add ~/.ssh/geye

但是遇到以下问题:

$ ssh-add ~/.ssh/geye
Could not open a connection to your authentication agent.

通过命令,解决

$ ssh-agent bash

远程新建分支后本地看不到

参考博文https://blog.csdn.net/changxiangyangy/article/details/104626571/

通过命令,解决

$ git remote update origin --prune
$ git remote update origin --prune
Fetching origin
remote: Enumerating objects: 52, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 22 (delta 14), reused 0 (delta 0)
Unpacking objects: 100% (22/22), 2.23 KiB | 48.00 KiB/s, done.
From git.example.com:Example-xxx/xxx
   306dbeb..69b9b47  feature/zeromq   -> origin/feature/zeromq
 * [new branch]      feature/delfalse -> origin/feature/delfalse

 

你可能感兴趣的:(笔记,git,ssh)