首页 > 解决方案 > 使用 WSL2/git 的 Github 问题

问题描述

我在 Windows 上使用 Ubuntu WSL2,并且正在尝试使用 git(以前曾使用过)。

$ git pull
gh auth git-credential get: 1: gh: Permission denied
Username for 'https://github.com': MY_USERNAME_HERE
Password for 'https://MY_USERNAME_HERE@github.com':
gh auth git-credential store: 1: gh: Permission denied
Already up to date.

正如您所看到的,身份验证工作正常,因为它正确拉动。我尝试创建一个远程分支,它也可以工作。但是我每次都必须设置密码。这是怎么回事gh auth git-credential get: 1: gh: Permission denied

标签: gitgithubwindows-subsystem-for-linux

解决方案


推荐阅读