Git log out user from command line

前端 未结 7 1452
佛祖请我去吃肉
佛祖请我去吃肉 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 16:59

    If you are facing any issues during push ( in windows OS), just remove the cached git account by following the given steps below: 1. Search for Control panel and open the same. 2. Search for Credential Manager and open this. 3. Click on Windows Credentials under Manage your credentials page. 4. Under Generic Credentials click on GitHub. 5. Click on Remove and then confirm by clicking Yes button. 6. Now start pushing the code and you will get GitHub popup to login again and now you are done. Everything will work properly after successful login.

提交回复
热议问题