解决每次git pull、git push都要输入用户名和密码问题

本人使用ubuntu系统,使用以下命令:

git config  --global credential.helper store

这会生成一个git帐号密码文件,使用以下命令查看:

cat ~/.git-credentials

之后使用git pull 或者 git push得在输入一次帐号和密码,后面就不用了。

posted @ 2023-08-04 11:23  阿雄耶  阅读(524)  评论(0)    收藏  举报