liunx git 免密码登录

vscode远程git或在linux环境使用git时,每次clone都要输入帐号密码,很不方便,可以使用下面一行命令,系统会记录你输入的下一次帐号密码。(明文记录,注意规避风险) 

  1.  
    # 执行
  2.  
    git config --global credential.helper store
     
    git reset --hard  && git pull
     
    3   重置密码
    git config --global --unset credential.helper
posted @ 2023-03-07 14:05  zlf2000  阅读(41)  评论(0编辑  收藏  举报