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.
$ git config credential.helper
manager
store
.git-credentials