Created
August 12, 2018 11:55
-
-
Save vertexvaar/beb3369fb090b1354e2f62eefbfa733a to your computer and use it in GitHub Desktop.
Git actions for merging repos together
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
# Move all commits in subfolder | |
git filter-branch -f --tree-filter 'mkdir -p $target; for node in ./*; do if [ "$node" != "./app" ];then mv $node $target; fi; done' | |
# Sign all commits | |
git filter-branch -f --commit-filter 'git commit-tree -S "$@"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment