实现git免密登录

在项目目录中打开git bash

git config credential.helper store –file=.git_credentails.

.git目录下 -> config文件中会新增credential一项

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = http://xxxxxxx.git
fetch = +refs/heads/*:refs/remotes/origin/*/
[branch "master"]
remote = origin
merge = refs/heads/master
[credential]
helper = store

此时只要操作一次登录

以后每次登录将会实现免密登录

参考:https://blog.csdn.net/u012163684/article/details/52433645?locationNum=4&fps=1

开积的个人博客