You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I've just firedup a new Win10 computer, have installed Sourcetree. I can see my repositories on Bitbucket, but when I try to clone them to the new machine It says the repositiry is not a valid path/URL, but I thinkit's because the login authentication fails. See attached screenshot.
I also just tried a push from the old computer and get a similar result. Have changed the Bitbucket password successfully and can log in using Firefox, but no joy with Sourcetree. One other thing is that it's been months since used Sourcetree on the old machine, just wasn't working on software.
Any ideas out there?
I see you're trying to pull from Bitbucket Cloud, and that Sourcetree doesn't seem to be configured with a remote account currently. That's probably the easiest path forward - we have some documentation to guide you through setting up a remote account in Sourcetree here. You could also click that "remote account" link at the end of the sentence under the Clone header in your screenshot. This will configure OAuth between Bitbucket and Sourcetree for you so that you don't have to authorize the client with a password. Helpful in the long run if you're going to use more than one repository.
If you want to continue without setting up the remote account, you can definitely do that. I think the confusion here is that Bitbucket no longer accepts passwords for authorization outside the app - you'll need to use an API token or what we call an app password inside Bitbucket. This ensures your password doesn't get compromised somehow - you can have multiple app passwords and revoke them at any time without having to cycle your Bitbucket password.
Here are the instructions for generating an app password and applying it in Sourcetree:
Create an app password
To create an app password:
- From your avatar in the bottom left, click Bitbucket settings.
- Click App passwords under Access management.
- Click Create app password.
- Give the app password a name related to the application that will use the password.
- Select the specific access and permissions you want this application password to have.
- Copy the generated password and either record or paste it into the application you want to give access. The password is only displayed this one time.
Add an app password to Sourcetree or another application
To add your app password to Sourcetree:
Go to the tab where you'll add or edit your account details:
- (Windows) Go to Tools > Options. From the Options dialog, select the Authentication tab.
- (macOS) Go to Sourcetree > Preferences. From the dialog that options, select the Accounts tab.
Click to Edit your account details or Add a new one.
From Authentication or Auth Type, select Basic, and enter your Username if it's not already there.
Enter the app password you just created as your Password. If you're on Windows, you'll need hit Refresh Password first.
Click OK or Save to save your account details.