网站首页linux

git提交代码时,总要求输入密码的解决

发布时间:2018-07-25 11:50:57编辑:阅读(3404)

    git bash进入项目目录,输入下面的命令, 再提交时输入密码,会自动记录下,以后就不用输入了。


    git config --global credential.helper store


    清除已保存的账号信息

    git config --global --unset credential.helper


    查看当前的配置信息

    git config --list


    查看远端地址

    git remote -v


    修改远端地址

    git remote set-url origin 仓库地址


评论