Skip to content

Instantly share code, notes, and snippets.

@vertexvaar
Created August 12, 2018 11:55
Show Gist options
  • Save vertexvaar/beb3369fb090b1354e2f62eefbfa733a to your computer and use it in GitHub Desktop.
Save vertexvaar/beb3369fb090b1354e2f62eefbfa733a to your computer and use it in GitHub Desktop.
Git actions for merging repos together
# 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