How to solve Bitbucket asking for your username and password each time you run a `git pull`

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.

Alternatively...

git remote set-url origin https://username:password@bitbucket.org/username/project.git