Created
July 18, 2014 21:18
-
-
Save aboyett/fe84243c3f3ff997e02a to your computer and use it in GitHub Desktop.
Automated squash of all commits since commit X
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/sh | |
base=$1 | |
export EDITOR="sed -i '2,$ s/pick/squash/;/Change-Id: / {d}'" | |
git rebase -i $base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The "/Change-Id: /" deletion omits any gerrit change-ids from the resulting commit message.