解决git每次提交代码需要输入帐号和密码问题

执行以下面命令

git config --global credential.helper store

在这里插入图片描述

此命令会在隐藏文件gitconfig的后面添加此内容;
使用cat -n ~/.gitconfig 指令可以查看;
首次提交的时候输入一次帐号和密码之后就不需要再次输入了;

猜你喜欢

转载自blog.csdn.net/qq_42697806/article/details/117122478