Edit your_repo_dir/.git/config (remember: .git folder is hidden)
Change:
https://bitbucket.org/username/project.git
to:
https://*username*@bitbucket.org/username/project.git
Save the file. Do a git pull to test it.
git remote set-url origin https://username:password@bitbucket.org/username/project.git