-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
56 additions
and
7 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,15 @@ | ||
When you run | ||
```sh | ||
git rebase -i INTERACTIVE_REBASE_BASE_COMMIT | ||
``` | ||
(or `--interactive`), an editor will open, showing a list of all the commits that would be applied. | ||
|
||
CAREFUL: in contrast to the output of `git log` where the newest commit is at the top, in this list the last commit is at the bottom! | ||
|
||
The output starts with a block of lines that look like this: | ||
``` | ||
INTERACTIVE_REBASE_EXAMPLE_PICKS | ||
``` | ||
But what does this mean? Fortunately at the bottom of the file it shows a short summary on all the possible commands. | ||
|
||
|
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 @@ | ||
#!/bin/sh | ||
|
||
# Mac sed has a different format for -i, so manually replace that file | ||
# hack: just replace "pick" with "fixup" until line 1000 (which does not exist), but I can't be bothered to find a nicer way not to change the first line... | ||
sed '2,1000s/^pick/fixup/' < "$1" > "$1.bak" | ||
# output the file for grabbing the flag | ||
cat "$1.bak" | ||
mv "$1.bak" "$1" |
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,3 @@ | ||
#!/bin/sh | ||
|
||
echo 'nuggit: ItsAllAboutTheRebase' |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ ShowMeMore | |
MyFirstBranch | ||
LogCat | ||
AnnotateMeIfYouCan | ||
ItsAllAboutTheRebase |
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