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
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.
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
`sudo cat ~/.git-credentials`
If you have saved credentials locally, will yield
https://<USERNAME>:<PASSWORD_OR_TOKEN_IN_USE>@github.com