--- title: git.asio.asia 推送认证失败的处理 type: experience permalink: main/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/git.asio.asia-推送认证失败的处理 stable_id: 2189461b-75ae-4a08-b067-eea5740dcbb5 scope: project memory_type: experience project_id: 8e229c96-a83b-4a02-ac40-10a0a9da444e usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939 status: active revision: 1 request_id: exp-git-asio-push-auth-askpass created_at: '2026-09-17T01:24:32.124927+00:00' updated_at: '2026-09-17T01:24:32.124927+00:00' tags: - git - credentials --- git.asio.asia 推送若报 “Failed to authenticate user”,是 Git Credential Manager 保存的 OAuth refresh_token 过期。解决:从密码库条目“git.asio.asia nixevol”取密码,用临时 GIT_ASKPASS 脚本 + `git -c credential.helper= -c credential.username=nixevol push` 绕过 GCM 推送,推完删除临时脚本和环境变量。secret_get 的 lookup_key 用条目名而非 item id。