git使用用户名密码设置

编辑本地.git/config中内容

windows不保存密码helper = wincred

[credential]
    helper = wincred    

linux中腾讯云申请账号

vi      ~/.git-credentials

linux保存密码helper = store 

vi ~/.gitconfig

[user]
    email = guanjq321@126.com
    name = guanjianqing
 [credential]
     helper = store

原文地址:https://www.cnblogs.com/zhanghuilong/p/11709070.html