I would like to find solution for problem very well described here - in short, this problem can be solved with git branch -d $(git branch --merged) when commandline used - question is, is there possibility to do the same in TortoiseGit?
            Asked
            
        
        
            Active
            
        
            Viewed 2,852 times
        
    5
            
            
        1 Answers
5
            As of version 2.3 TortoiseGit only helps you for automatically cleaning up remote tracking branches.
You can do this automatically when you use the Pull/Fetch-dialog an check "Prune". Then all remote-tracking references which are not there on the remote are automatically removed. On Sync dialog select "Clean up stale remote branches" in the pull/fetch menu button.
Starting with version 2.3.2 you can open the Browse References dialog and filter for merged/unmerged branches. Using that filter you, then, can delete unneeded branches/tags.
 
    
    
        MrTux
        
- 32,350
- 30
- 109
- 146
- 
                    Ok, thanks, that was not the question, question was how to automatically get rid of not used local branches. As i get, its not possible in tortoiseGit, right ? – Johny Oct 24 '16 at 12:18
- 
                    Updated: Right, with the current stable version it is not possible. I just updated the answer. The new preview release will be available at the latest by the end of this week. See https://gitlab.com/tortoisegit/tortoisegit/commit/5ae17723583c8cd616940a417207a3976cb91c2b – MrTux Oct 24 '16 at 13:38
- 
                    Its worth noting that Browse References is in the extended options by default, so you have to [shift]+rightClick on the folder to get it – Richard Tingle Mar 02 '17 at 15:30
- 
                    Be aware you'll also need a sufficiently high level of Git, not just TortoiseGit. I had 1.9 and the relevant Browse References filter was grayed out. I was surprised at this, since I'd only installed Git in 2015 and I had assumed my TortoiseGit updates would have updated that also. It does not. – Erica Kane Mar 17 '17 at 16:08
 
    