[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fZRFnbXdzCwY_ujIq8qBXzXTqNbM9wCmeBuKjpnFdVZM":3},{"code":4,"message":5,"data":6},200,"成功",{"id":7,"createdAt":8,"title":9,"content":10,"summary":11,"image":12,"uid":13,"user":14,"categoryId":21,"category":22,"subCategoryId":24,"subCategory":25,"comments":27,"status":17,"reason":28,"notice":28,"visitCount":29,"commentCount":30,"keywords":31},145,"2025-01-24T04:52:55.324Z","git Authentication failed - remote: Https克隆账号或密码错误，如何查看克隆账号或密码","## 问题\n> Pushing to https://codeup.aliyun.com/66f152d5c/h5/xxx.git\nremote: Https克隆账号或密码错误，如何查看克隆账号或密码：https://help.aliyun.com/document_detail/158880.html\nfatal: Authentication failed for 'https://codeup.aliyun.com/66f152d5c/h5/xxx.git/'\n\n问题截图：\n![git error截图](https://image.xinwei.ltd/31737693420722.png)\n\n## 简要描述一下背景\n本地新开发了一个web项目，当开发完之后，需要上传到git仓库，于是我选择了阿里云的codeup平台，在codeup上新建了一个仓库目录，然后通过`git init`、`git remote add`等操作将代码推送到codeup上，但是出现了`git push`的报错，如上面的问题和截图所示。\n\n## 问题所在\n即是本地的`git config`中username和password需要和阿里的codeup上的https进行验证，但是本地的username和password在验证的时候输入不正确，所以出现如此报错。\n\n## 解决问题\n### 1. 确认username和password\n去阿里的codeup平台上的【个人设置】中，找到【HTTPS密码】设置的地方\n![codeup location](https://image.xinwei.ltd/image1737693779286.png)\n\n确保你是知道克隆账号username和密码password的，如果已经忘记了，可以点击编辑图标修改对应的username和password。\n\n修改的过程中，会需要提供邮箱收到的验证码。\n![codeup_修改密码](https://image.xinwei.ltd/image1737694118357.png)\n\n\n所以需要你确保你的邮箱已经在codeup上验证过了。\n![codeup email](https://image.xinwei.ltd/image1737693948700.png)\n\n\n### 2. 执行git push\n已经知道了https的username和password后，那么操作git时遇到验证输入你就可以解决了。\n![git push username](https://image.xinwei.ltd/21737694191169.png)\n如图所示，我在vs code的终端中对项目git push，在顶部出现了username的输入框，输入username后，紧接着弹出password输入框，输入password，那么验证就通过了。\n![git push success](https://image.xinwei.ltd/image1737694310587.png)\n\n以上就是这么多了。\n\n","简单记录一个git操作失败的问题吧。喜欢记录，喜欢分享，希望对需要的同学有所帮助。","https://image.xinwei.ltd/31737693420722.png",499668042977349,{"phone":15,"userId":13,"nickName":16,"vipType":17,"avatar":18,"sign":19,"createdAt":20},"13121171998","全栈老韩",1,"https://image.xinwei.ltd/images/IMG_5430.JPG","全栈工程师，擅长iOS App开发、前端（vue、react、nuxt、小程序&Taro）开发、Flutter、React Native、后端（midwayjs、golang、express、koa）开发、docker容器、seo优化等。","2024-01-01T16:14:30.305Z",2,{"id":21,"name":23},"IT技术",31,{"id":24,"name":26,"parentId":21},"git&svn",[],"",3727,0,"git,git Authentication,git Authentication failed,git https,git https error"]