使用git版本管理时的免密问题

方式1 使用ssh 方式

方式2 使用命令  git config --global  credential.helper store

会把密码存放到当前用户的home目录下的 该文件中

[root@localhost hello]# cat ~/.git-credentials 
http://song:lover@11.11.136.131
[root@localhost hello]# cat ~/.gitconfig 
[user]
    name = tim
    email = song@com.cn
[credential]
[credential]
    helper = store
[push]
    default = matching
原文地址:https://www.cnblogs.com/leleyao/p/10910172.html