search

Home  >  Q&A  >  body text

Git用户登录记录无法删除

之前用同事的gitlab帐号check了代码到本地,现在想切换到自己的帐号进行操作。在项目的根目录和全局的git配置都没发现用户记录,求解决方法

大家讲道理大家讲道理2763 days ago549

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:24:48

    Look at the private key file in the .ssh directory.
    http login, old password can only be used for long-term storage.

    Set to remember password (default 15 minutes):

    git config --global credential.helper cache
    If you want to set the time yourself, you can do this:

    git config credential.helper 'cache --timeout=3600'
    The setting will expire after one hour

    Long term storage of passwords:

    git config --global credential.helper store

    reply
    0
  • Cancelreply