首页 > 解决方案 > git push auth fail after setting remote origin to bitbucket

问题描述

Should I submit a bugticket for Atlassian? :P

my scenario backup git repo from on-premise Azure Devops to Bitbucket cloud

Created App password, with which I can clone the repository from bitbucket.

git clone https://{username}:{App password}@bitbucket.org/someworkspace/some_repo.git

to clarify on account_name, username in bitbucket

Now to my scenario, i cloned Azure Devops repo based on this: https://www.atlassian.com/git/tutorials/git-move-repository Of courser, my {App password} has admin right on repositories

git remote rm origin
git remote add origin https://{username}:{App password}@bitbucket.org/someworkspace/some_repo.git
git push origin --all

remote: Invalid username or password fatal: Authentication failed for 'https://bitbucket.org/someworkspace/some_repo.git/'

after failing I tried different combinations, but still no luck

git remote rm origin
git remote add origin https://bitbucket.org/someworkspace/some_repo.git
git push origin --all
Username for 'https://bitbucket.org': {username}
Password for 'https://{username}@bitbucket.org': {password}
remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/someworkspace/some_repo.git/'

combinations

emailaddress - password

username - password

account_name - password

account_name - App password

My assumption I'm not on a premium Plan in bitbucket

Thanks for the help in advance

App password's permissions. surely more then needed (Y)

标签: bitbucketbackup

解决方案


推荐阅读