Comment by 1a527dd5
7 days ago
I use
#!/bin/sh
git checkout main
git fetch --prune
git branch | grep -v main | xargs --no-run-if-empty git branch -D
git pull
Save that next to your git binary, call it whatever you want. It's destructive on purpose.
No comments yet
Contribute on Hacker News ↗