Follow

Weekend is almost upon us. Remember to clean up all your merged branches before you shut your laptops.

$ git checkout main
$ git branch --merged | awk '$1 != "*" {print $NF}' | xargs -n 1 git branch -d

@dsoft error: pathspec 'main' did not match any file(s) known to git

@musicmatze may be it is "master" for your repo. Whatever is your main branch 😊

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!