I have newly installed git and i have access to bitbucket and created an account there.
Now i wanted to push my local changes to bitbucket account but it fails. Below is the way i do it
=============
git push -u origin master
Username for 'https://bitbucket.org': <UserName>
Password for 'https://<UserName>@bitbucket.org':
remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/path/bootcamp-git/'
========
git remote -v gives the following output
origin https://<UserName>@bitbucket.org/path/bootcamp-git.git (fetch)
origin https://<UserName>@bitbucket.org/path/bootcamp-git.git (push)
With the same credentials i tried using the Sourcetree app. All the pushes and pulls are successful.
I don't understand why this is not working from CLI.