ubuntu git push 重复输入用户名和密码

来源:互联网 发布:软件研发部组织结构图 编辑:程序博客网 时间:2024/05/01 11:50

ubuntu下

在~/(用户目录)下, vim创建文件 .git-credentials, 用vim编辑此文件,输入内容格式:

sudo vim .git-credentials

https://{username}:{password}@github.com


2. 在终端下执行  git config --global credential.helper store

3. 可以看到~/.gitconfig文件,会多了一项:

[credential]    helper = store
0 0