目 录CONTENT

文章目录

git保存账号密码

过客
2020-02-12 / 0 评论 / 0 点赞 / 4 阅读 / 0 字

1. 进入项目目录的.git目录

2. 使用git config --list查询当前配置

git config --list
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://e.coding.net/guoke3915/coding-demo/guoke3915.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

3. 发现没有credential.helper=store

4. 所以打开./git/config文件最后加入

[credential]
    helper = store

5. 然后在项目中使用git pull,会输入账号密码,之后直接就不需要输入了

6. 如果不想保存,则删除即可

0
git
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区