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 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
AUG Leaders

Atlassian Community Events