Greetings,
I am new to Bitbucket.
I have previously installed git and set it to a different email. Recently one of my clients provided me a new email address and repo access to that email. When I am cloning the repo it throws an 'invalid credentials' error.
Things I have tried.
1) added my new email using git config user.email command.
Any help would be appreciated.
Thanks & Regards,
Hello @Ishant Jindal and welcome to the Community!
Based on your description, I suspect you are trying to clone over HTTPS. The credentials for the git clone are different from the ones used to log in to the UI.
To clone a git repository using HTTPS you'll need to use a command as follows :
git clone https://{username}:{app_password}@bitbucket.org/{workspace}/{repository}.git
where :
It's important that the credentials above are from the account where you have access to the repository.
Could you try using those credentials for authentication and let us know how it goes?
Thank you, @Ishant Jindal !
Patrik S
Hey, the mentioned method worked just fine. Thanks for the help.
Best Regards,
Ishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.