Skip to content

Instantly share code, notes, and snippets.

@kokosing
Created July 11, 2017 07:54
Show Gist options
  • Save kokosing/6bb506177eae7f1ca7f760020c32cd04 to your computer and use it in GitHub Desktop.
Save kokosing/6bb506177eae7f1ca7f760020c32cd04 to your computer and use it in GitHub Desktop.
sort git commit before publishing pull request (git 2.7)
#!/bin/bash
EDITOR=true git rebase master --ignore-date --interactive -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