-
-
Save kokosing/6bb506177eae7f1ca7f760020c32cd04 to your computer and use it in GitHub Desktop.
sort git commit before publishing pull request (git 2.7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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