Skip to content

Instantly share code, notes, and snippets.

@sergeant-wizard
Created July 17, 2020 00:28
Show Gist options
  • Save sergeant-wizard/a0254d98ac9477b02dc966c2cdf283e7 to your computer and use it in GitHub Desktop.
Save sergeant-wizard/a0254d98ac9477b02dc966c2cdf283e7 to your computer and use it in GitHub Desktop.
git subtree rebase hack to gpg sign
# 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