Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add git-fixup and git-squash
- Loading branch information
1 parent
0d2c8aa
commit 55d54c5
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
default_branch=$(git default-branch) | ||
|
||
git --no-pager log $default_branch.. --pretty=format:"%h %s" | | ||
selecta | | ||
awk '{print $1}' | | ||
{ read commit; git commit --fixup $commit; } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
default_branch=$(git default-branch) | ||
first_commit=$(git --no-pager log $default_branch.. --pretty=format:%h | tail -1) | ||
|
||
git ri $first_commit~1 |