DEV Community

Discussion on: 5 Git Tricks Every Developer Should Know

Collapse
 
jessekphillips profile image
Jesse Phillips

git switch --detach origin/master
git branch --merged | xargs git branch -d

That would be another good choice. It has some of my additions.

  • delete your local master, don't put unneeded work to manage it
  • utilize detached head, it is not scary