Skip to content

Instantly share code, notes, and snippets.

@nikicc
Created October 16, 2020 17:52
Show Gist options
  • Save nikicc/723c2f2d356ff723de4970b6ff706b02 to your computer and use it in GitHub Desktop.
Save nikicc/723c2f2d356ff723de4970b6ff706b02 to your computer and use it in GitHub Desktop.
Shortcut for reordering commits in GitHub PRs
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