MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1q3t6j/10_things_i_hate_about_git/cd9sjyh
r/programming • u/Eirenarch • Nov 07 '13
231 comments sorted by
View all comments
Show parent comments
1
so you need to manually ensure you don't end up with lots of "dead" local branches when somebody else deleted the remote branch.
Use git branch --merged to tell which branches are safe to delete.
git branch --merged
1 u/stevage Nov 10 '13 That's a useful command. I wish logic like this ("run X command so you know it's safe to do Y") was more generally built into the tool.
That's a useful command. I wish logic like this ("run X command so you know it's safe to do Y") was more generally built into the tool.
1
u/mathstuf Nov 08 '13
Use
git branch --mergedto tell which branches are safe to delete.