Hi folks,
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?
Best regards,
Per
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 ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The commits should only continue to show up on the graph if the branch was merged into another branch before deletion. A screenshot might help illustrate exactly what's being asked about here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.