Skip to content

Instantly share code, notes, and snippets.

@WORMSS
Last active April 27, 2018 10:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WORMSS/b31ffc84b29c54a42ccf to your computer and use it in GitHub Desktop.
Save WORMSS/b31ffc84b29c54a42ccf to your computer and use it in GitHub Desktop.
Octopus Merge
# Make octopus from current commit/index
commit_id=$(git commit-tree $(git write-tree) -p commit1 -p commit2 -p commit3 -m "Octopus Message")
git branch -f "tmp/octopus" "$commit_id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment