• git设置不用每次输入密码


    git设置不用每次输入密码

    这样在输入过一次密码之后,以后就不需要每次都输入密码了。

    touch ~/.git-credentials,
    git config --global credential.helper store

    git设置用户名、邮箱 及清除缓存用户信息

    配置用户名和邮箱:

    git config --global user.name "username"
     
    git config --global user.email "useremail@126.com"

    清除配置中纪录的用户名和密码,下次提交代码时会让重新输入账号密码:

    git config --system --unset credential.helper

    查看git配置信息

    git config --list

    执行命令之后,再次pull或push时会缓存输入的用户名和密码:

    git config --global credential.helper store

    清除git缓存中的用户名的密码

    git credential-manager uninstall

    window中系统也可能会缓存Git连接的凭证

    清除步骤如下:

    打开控制面板->用户账户->凭据管理器->普通凭证,第一条应该就是刚才操作的,建议直接编辑,用户名和密码编辑为正确的,再次clone就可以了

  • 相关阅读:
    nginx设置开机自启
    sublimeText3和phpstrom使用
    快捷键整理
    nginx日志分割及备份
    nginx日志设置
    nginx上部署PHP
    C语言三种参数传递方式
    浮点数在内存中的存储方式
    windows下git安装过程
    偏移二进制编码和二进制补码的区别
  • 原文地址:https://www.cnblogs.com/caihongmin/p/16373270.html
Copyright © 2020-2023  润新知