I have an additional branch (new_branch) that has forked from master branch, that exists in both remote origin and in my local repository. The new_branch is deleted from origin and from my local repository, however, the branch is still displayed in SourceTree graph! Is there a way to remove it from the graph?
Deleting a branch within git is simply removing the symbolic name of the branch. The commits on the branch still exists, even after deleting the branch. Therefore you can still see the branch within SourceTree (but the branch has no name anymore - since the symbolic name was deleted by you ...)
That's one of the main features of a VCS: preserving commits ....
If you want to remove the commits from your repository, you need other git methods (see: http://stackoverflow.com/questions/1338728/delete-commits-from-a-branch-in-git)
Be aware: Deleting commits (generally: modifiying commit history) on the remote repository is considered a bad practice (https://developer.atlassian.com/blog/2015/04/force-with-lease/) - nevertheless you still have to use it sometimes. You should be aware of the consequences - and ponder ...
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG