I'm trying to push my commits to my Bitbucket repository from Visual Studio 2017, and a window opens where it asks for my credentials. I'm pretty sure they're correct and I'm able to log in via browser. How do I fix this?
Atlassian (company which develops Bitbucket) has changed their authentication some time ago, and so you must enter your email address now instead of your account name to log in. You may need to log into your Bitbucket account via browser and create/update to an Atlassian account.
Additionally, if your repository is configured to log in with your username, and the authentication window appears with your account name already typed into the first input field, you'll need to remove it from your git config (in your repository's .git\config
file) like so:
https://AccountName@bitbucket.org/AccountName/project1.git
change to
https://bitbucket.org/AccountName/project1.git
Next time you try to push, the authentication window shows up with both fields empty, enter your email address and password, and it should work.