打开终端按顺序执行下面的指令:

1.cd ~

 

2.touch .git-credentials

 

3.vim .git-credentials 然后在打开的文件里面输入

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

其中{username}{passworld}更换成自己的账号密码,保存并退出。

 

4.git config --global credential.helper store

 

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

    [credential]

         helper = store

完成设置

相关文章:

  • 2021-12-25
  • 2022-01-30
  • 2021-05-18
  • 2021-06-21
  • 2021-08-07
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2021-06-03
  • 2021-06-07
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案