Where is my remote git repository password stored on the local machine?

后端 未结 3 831
暖寄归人
暖寄归人 2021-02-03 23:04

I have a git repository set up on bitbucket

$ git remote -v
origin  https://myusername@bitbucket.org/myusername/my_repository_name.git (fetch)
origin  https://my         


        
相关标签:
3条回答
  • 2021-02-03 23:35

    if $ git config credential.helper returns manager, the password is stored in the windows credential manager, if it returns store, password is stored in a .git-credentials file in the user folder.

    0 讨论(0)
  • 2021-02-03 23:46

    With the default configuration of git on windows, this is stored in Windows under: control panel => User => Credential manager.

    See a more details answer: https://stackoverflow.com/a/51437252/717372

    0 讨论(0)
  • 2021-02-03 23:49
    `sudo cat ~/.git-credentials`
    

    If you have saved credentials locally, will yield
    https://<USERNAME>:<PASSWORD_OR_TOKEN_IN_USE>@github.com

    0 讨论(0)
提交回复
热议问题