Skip to content

Instantly share code, notes, and snippets.

@daniele-athome
Created September 5, 2018 12:34
Show Gist options
  • Save daniele-athome/6761791af38c09b4071fca4858e13344 to your computer and use it in GitHub Desktop.
Save daniele-athome/6761791af38c09b4071fca4858e13344 to your computer and use it in GitHub Desktop.

Revisions

  1. daniele-athome revised this gist Sep 5, 2018. No changes.
  2. daniele-athome created this gist Sep 5, 2018.
    4 changes: 4 additions & 0 deletions delete-orphan-commits.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/sh

    git reflog expire --expire=now --all
    git gc --prune=all --aggressive