Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I disconnect SourceTree from a remote repository

jratcliff
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!
March 23, 2016

I've been using Sourcetree with BitBucket for a project, but I'm no longer part of that project. Is there a way to unlink my SourceTree app from the remote repository so I don't see status on the project? I don't own the project so I can't just delete it from BitBucket.

1 answer

1 accepted

0 votes
Answer accepted
Johannes Kilian
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.
March 23, 2016

Just for correct wording: it's not SourceTree which is connected to remote repository - it's your local git repository which is connected to your remote repository. SourceTree is just a graphical backend to commandline git with some additional features.

I haven't seen this feature (disconnect from repository) yet availble within SourceTree - but it's very easy done:

  • via commalndline-git:

    git remote remove <name>

    with <name> is the name of your remote repository

  • via direct editing of the .git/config file. This is a simple INI-File.
    Look for "remote" sections  - like this one

    [remote "&lt;name&gt;"]
        url = http://......
        fetch = +refs/heads/*:refs/remotes/&lt;name&gt;/*

    and remove the section from INI-file - and save it - and you're done ...

     

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Sourcetree Events