Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to fetch/clone even after adding remote account

Joyce Brombaugh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2025

I figured out how to add remote account (GitLab EE using personal token). However I am still not able to fetch existing repo or clone one.

The strange thing is that if I select Remote on a new tab, it's showing me all remote repositories based on my GitLab EE credential.

However if I click clone on one of them, it'd say it is not a valid source path/url. 

I don't know where else am I supposed to setup credential.

 

1 answer

0 votes
Jason U
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2025

Hi Joyce,

It sounds like your GitLab account connection is valid (since you can see the repositories), but SourceTree can’t authenticate when it actually tries to clone or fetch.

Here are the two most common fixes:

1️⃣ Use the correct clone URL — copy the HTTPS or SSH URL directly from GitLab’s Clone button (it should end with .git).
2️⃣ Check your credentials — in Tools → Options → Accounts, make sure your GitLab entry uses Basic Auth with your personal access token as the password, and that the token includes the read_repository scope.

If you’re using SSH, make sure your key is added under GitLab → User settings → SSH Keys and that SourceTree is set to use OpenSSH in Tools → Options → Git.

If those look correct and you still can’t clone, this may be an authentication or certificate issue specific to your setup — in that case, it’s best to reach out to Atlassian Support with your clone URL type and error hash so they can check the logs.

Hope this helps you get connected!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events