Skip to content

Instantly share code, notes, and snippets.

@dgreda
Last active May 31, 2020 15:21
Show Gist options
  • Save dgreda/99fd4a83eaaae78cfcbd to your computer and use it in GitHub Desktop.
Save dgreda/99fd4a83eaaae78cfcbd to your computer and use it in GitHub Desktop.
Git Tips & Tricks

Delete branches already merged to master

git branch --merged master | grep -v "master" | xargs -n 1 git branch -d

Reduce git repository size

git gc --aggressive --prune=now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment