✨
eallion's Docs
  • README
  • Nginx
    • Typecho Nginx Rewrite
  • Gmail
    • 如何自动删除重复的邮件
  • Windows
    • 在此目录打开 CMD 命令提示符
  • README
    • git push 免密码
  • Ubuntu
    • Ubuntu2010
  • HTML
    • HTML Sample
  • Hugo
    • 本地调试(Web Server)
    • Hugo 构建命令
  • Openwrt
    • 编译 lean openwrt 步骤记录
由 GitBook 提供支持
在本页

这有帮助吗?

  1. README

git push 免密码

通用情况

1.使用文件创建用户名和密码

文件创建在用户主目录下,打开 Git Bash:

touch ~/.git-credentials
vim ~/.git-credentials

添加一行:

https://eallion:TOKEN@github.com

:wq退出。

2.添加git config内容

git config --global credential.helper store

执行此命令后,用户主目录下的.gitconfig文件会多了一项:[credential]

helper = store

重新git push就不需要用户名密码了。

上一页README下一页Ubuntu

最后更新于3年前

这有帮助吗?