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.
Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.