Ubuntu 下每次 git pull 时需要输入账号密码解决方法

全能 AI 聚合平台 免费

一站式接入主流 AI 大模型,支持对话 · 生图 · 生视频,即开即用

ChatGPT Claude Gemini Grok DeepSeek 通义千问 Ollama
AI对话 AI生图 AI视频
免费使用 →
  • 1.执行 git config –global credential.helper store
  • 2.再执行 git pull
    1. 输入账号密码

流程执行完毕后下次在输入git pull时就不用输入账号密码了。
此时查看~/.gitconfig 文件会看到如下图所示的字样
[credential] helper = store

Ubuntu 下每次 git pull 时需要输入账号密码解决方法

然后查看 ~/.git-credentials 可查看自己的账号密码,形式是: https://domain:password@username

原文链接

© 版权声明

相关文章

暂无评论

none
暂无评论...