search

Home  >  Q&A  >  body text

Git user login records cannot be deleted

I used my colleague’s gitlab account to check the code locally, but now I want to switch to my own account for operation. No user record was found in the project root directory or global git configuration, please solve it

大家讲道理大家讲道理2808 days ago578

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