作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Windows 10 上的 WSL 中使用 Ubuntu,并且我在 WSL 中安装了 git 并定期使用它。我有一个非常烦人的问题,我尝试缓存我的 github 凭据,因此我不必在提交时不断输入我的用户名/密码,但它不起作用。我遵循 github 逐字提供的确切说明。首先我输入:
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=2629800'
最佳答案
可能原因是 WSL 中对 Unix 域套接字的支持不完整
您可以改用 Windows 凭据管理器:https://www.edwardthomson.com/blog/git_credential_manager_with_windows_subsystem_for_linux.html
从链接,这里是如何启用它:
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"
关于Git 凭据帮助程序不适用于 linux 的 Windows 子系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61429466/
我是一名优秀的程序员,十分优秀!