Skip to content

Instantly share code, notes, and snippets.

@Takhion
Forked from findepi/sort-commits-for-github.sh
Created November 9, 2019 17:22
Show Gist options
  • Save Takhion/16f58760450c640d88df1ff73dba700d to your computer and use it in GitHub Desktop.
Save Takhion/16f58760450c640d88df1ff73dba700d to your computer and use it in GitHub Desktop.
sort commits for GitHub's sake
git rebase "$(git merge-base HEAD master)" -x 'git commit --amend -C HEAD --date="$(date -R)" && sleep 1.05'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment