Create an arbitrary number of branches that can be octopus merged
Honestly, just for fun. I have never needed to merge more than 2 branches at a time. I thought merging 100 branches at once would be cool.
- A terminal with git
- For Windows users, use Git Bash, or my personal favorite, Cmder
- A GUI for displaying lots of branches
- I personally like SourceTree
First, you will want to clone this repository: git clone https://github.com/DanielGGordon/octo-merge.git
And then cd octo-merge
The first script you will want to run is create_octo.sh
. This script will:
-
Create a file called
octo_test.txt
that will contain N lines in the file.- Each line will be changed by a different branch
- 'Randomize' the branch creation and commits so that the history looks more scrambled
- Do a 'smart' search of existing branches, instead of hardcoding the search and delete delete this line! just a git test