e987
e987

Reputation: 407

git/SourceTree local "branch" removal?

This is novice question. Using git/SourceTree after I check out someone else's branch, how do I remove that branch from my SourceTree "branch" list when I no longer want it there? I thought I simply delete the branch while not using the "also delete remote branch" option, however, SourceTree complains the branch is not fully merged.

Upvotes: 0

Views: 1958

Answers (1)

BigHeadCreations
BigHeadCreations

Reputation: 1703

In SourceTree:

  1. Make sure you are not on the branch you want to delete.
  2. Right click on the branch and choose Delete [branch-name]
  3. Check the Force delete checkbox and click OK

This will delete the branch despite the warning you are getting that the branch is not fully merged.

By doing this you will lose any commits/changes on that branch that have not been merged into another branch (eg: master)

Upvotes: 1

Related Questions