Linux下 git 免密登录

来源:互联网 发布:js取子串 编辑:程序博客网 时间:2024/05/22 06:32
  1. 命令行形式,在 git 工作区中 touch创建文件 .git-credentials
    • touch .git-credentials
  2. 编辑此文件
    • gedit .git-credentials
  3. 编辑内容如下
    • https://username:password@git项目地址
  4. 保存退出该文件
  5. 命令行执行
    • git config –global credential.helper store
  6. 以上,输入 git fetch 即可发现已经免密登录
0 0
原创粉丝点击