Created
July 17, 2020 00:28
-
-
Save sergeant-wizard/a0254d98ac9477b02dc966c2cdf283e7 to your computer and use it in GitHub Desktop.
git subtree rebase hack to gpg sign
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
# repo1 | |
# | repo2 | |
git subtree split --prefix repo2 --branch repo2_update --onto origin/master | |
git subtree push --prefix repo2 <repo2_url> repo2_update | |
cd ~/repo2 # (NOT the subtree) | |
git fetch origin | |
git checkout repo2_update | |
git rebase origin/master | |
git push --force origin repo2_update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment