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

Is it safe to remove features?

Koen van der Drift June 4, 2015

My project has many feature branches that are either merged back to main, or stale and no longer used. The sidebar in SourceTree is getting crowded, and I'd like to clean it up.

 

Is it safe to remove the features I no longer work on, without losing the code that was merged back?

1 answer

3 votes
Balázs Szakmáry
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.
June 4, 2015

Yes, it is completely safe to remove these branches.

Tim Crall
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.
June 4, 2015

Remember that a "branch" is just an alias to a particular commit, much like a label. The only difference is that a branch always points to the tip of a development line. This is a bit different from our intuitive understanding of what a branch is (where we may think of it as there series of commits that brought us to this tip). This distinction is important. This means that when you delete a branch, you are only deleting the named pointer. You are not deleting any commits or the parent-child relationship between them. They will still be a part of your repos history, they just won't have a special name any longer.

Like vaniajeronimo likes this
Koen van der Drift June 5, 2015

Excellent explanation - thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events