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

How do you abandon a branch?

Doug Sands May 11, 2016

What is the correct way to abandon a branch that led down an unsuccessful path?

2 answers

1 vote
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.
May 11, 2016

Alternatively, just leave it dangling there.  It does very little harm.  Except that it's annoying when it shows up on your branches lisst.

If you tag the last commit on the branch and then delete the branch, you can still retrieve the commit if you need to and it doesn't show up on your branches list.

1 vote
Rich Duncan
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.
May 11, 2016

If you don't think you'll use it again, simply delete it (on the server).

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.
May 11, 2016

I'd probably phrase that a little stronger as "if you're quite certain you'll never use it again" . . .

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events