You should be able to set your credentials like this:
git remote set-url origin https://USERNAME:PASSWORD@bitbucket.org/path/to/repo.git
You can get the remote url like this:
git config --get remote.origin.url
stackoverflow: https://stackoverflow.com/questions/34400272/visual-studio-code-always-asking-for-git-credentials