git push免输入账号和密码

创建文件,加入如下内容

1
2
3
4
cd ~
touch .git-credentials
vi .git-credentials
https://{username}:{password}@{domain}{:port}

执行如下命令

1
git config --global credential.helper store

打开~/.gitconfig文件查看

1
2
[credential]
helper = store
作者

苏同

发布于

2017-04-27

更新于

2017-04-27

许可协议