001使用HTTPS协议设置免密码提交代码

发布时间 2023-04-27 15:45:14作者: arun_yh

一、

store模式:
将凭证用明文的形式存放在磁盘“home”目录下(默认是“~/.git-credentials”),永不过期,除非手动修改在Git服务器上的密码,否则永远不需要再次输入凭证信息。“git-credentials”文件内容如下:

https://username:password@***********.com

保存退出后,执行如下命令即可完成:
git config --global credential.helper store

 

Reference: https://support.huaweicloud.com/usermanual-codehub/devcloud_hlp_00073.html#devcloud_hlp_00073__zh-cn_topic_0259249622_section32424647