git免密码提交

创建.git-credential文件,

  1. 创建文件,进入文件,输入内容:
  2. cd ~
    touch .git-credentials
    vim .git-credentials

    输入内容
  3. https://{username}:{password}@gitee.com
    实际输入中,用户名,密码没有{}

4.

git config --global credential.helper store

5 打开~/.gitconfig文件,会发现多了一项:

[credential]
helper = store

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐