系列文章目录
git
ubuntu记住gitee账号密码
前言
gitee
一、记住gitee账号密码
- 运行命令,启用git的凭证存储功能
git config --global credential.helper store
- 拉取代码
git clone
输入用户名和密码,用户名和密码会自动保存到本地
二、查看生成的文件
.gitconfig
# cat .gitconfig
[user]
name = 用户名
email = 邮箱
[credential]
helper = store
.git-credentials
https://username:password@gitee.com
三、删除已保存的登录信息
git config --global --unset credential.helper