git免登录设置

单个项目免登陆

将下面两天存入(如果不想免登录,则注释即可)
文件路径.git/config,输入下面的参数

[credential]
    helper = store

全局免登录

先运行下面的命令,再登录

git config --global credential.helper store

全局设置用户名和密码

git config --global user.mail sonny.zhang@foxmail.com
git config --global user.name sonny-zhang

去掉免登录

git config --system --unset credential.helper

Hole yor life get everything if you never give up.
原文地址:https://www.cnblogs.com/1fengchen1/p/13995146.html