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

Sourcetree how to remove a tab permanently?

Thiếu tá Phạm Xuân Bách December 10, 2018

How to remove a tab permanently?

I do create a tab for testing. 

Then I close it and create my tabs for work.

When I click the plus sign to add new tab, I only see my working tab in "Local repositories", the testing tab is not there.

But now everytime I open sourcetree, that testing tab always show, and it load too long, make sourcetree hangs.

So how to remove that tab permanently?

 

My sourcetree version is 3.0.12 windows 10 x64.

I search and see this topic saying use the bookmark bar, but can't find the bookmark bar in sourcetree as in atlassian knowledge base:

https://confluence.atlassian.com/sourcetreekb/bookmarks-column-repository-browser-overview-781398414.html

3 answers

1 accepted

1 vote
Answer accepted
Thiếu tá Phạm Xuân Bách December 10, 2018

Today I found a workaround for this.

After reading this topic, I go to the folder in the "ghost" tab, delete the .git folder, (and all mapped subfolder).

Then the "ghost" tab has gone.

Restart sourcetree and that tab never open again.

0 votes
Sih-Ying_Wu February 4, 2020

I've been having this problem for a while, in the source tree I clicked the explore icon, and this shows me where the the .git folder is. I deleted the .git folder and all mystery tab is gone.  It is correct that sourcetree now walks through the root directory and search for all .git folder, adding them to the tab. 

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 10, 2018

Hi

If you close a tab before closing Sourcetree it should not re-open it. However if it appears to be doing it then it can only really be one of two reasons.

Sourcetree is being open from the test repository folder, e.g. doing

    > sourcetree.exe .

This will request sourcetree to open and open a tab for a repository based on the current folder.

Alternatively the open tabs are recoded in %localappdata%/Atlassian/Sourcetree/opentabs.xml. Closing sourcetree and deleting that should ensure now old tabs are re-opened when sourcetree re-opens.

Thiếu tá Phạm Xuân Bách December 10, 2018

Hi @minnsey 

Thks for your answer, but:

+ My sourcetre is being open from C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian

+ I try deleting the opentabs.xml but when open sourcetree, that tab appear again, and then it auto create/adding that tab to opentabs again.

 

2.png

 

minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2018

Is the repository at the c:\ drive level?

When Sourcetree opens it will walk the directory structure up looking for .git folders, so if there was a .git folder in any of these folders it would cause Sourcetree to open that view

C:\Users\user_name\AppData\sourcetree\app-{version}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events