-
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.
Merge commit '25b02d99f68cb00a6713acbe6234383807f382ee'
- Loading branch information
Showing
2 changed files
with
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# sandbox-repo | ||
|
||
test repo for playing around with git and github |
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 @@ | ||
#!/bin/bash | ||
# add a parent commit to the specified commit, ideal | ||
# for establishing the other parent of a squashed merge | ||
# lifted from https://stackoverflow.com/a/41243690/2860309 | ||
|
||
# usage: ./add_parent.sh TARGET_COMMIT_ID NEW_PARENT_COMMIT_ID | ||
|
||
set -ex | ||
|
||
target_commit=$1 | ||
additional_parent=$2 | ||
|
||
git replace --graft $target_commit \ | ||
$(git show --pretty=%P $target_commit | head -n1) \ | ||
$additional_parent |