Git log out user from command line

前端 未结 7 1453
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 16:22

Is there a command for logging out of git? I\'m turning my computer over to somebody else and don\'t want the git to be attached to my account in the terminal.

7条回答
  •  被撕碎了的回忆
    2020-11-29 17:03

    I am in a corporate setting and was attempting a simple git pull after a recent change in password.

    I got: remote: Invalid username or password.

    Interestingly, the following did not work: git config --global --unset credential.helper

    I use Windows-7, so, I went to control panel -> Credential Manager -> Generic Credentials.

    From the credential manager list, delete the line items corresponding to git.

    After the deletion, come back to gitbash and git pull should prompt the dialog for you to enter your credentials.

提交回复
热议问题