GIT-OCTOPUS(1)
π GIT-OCTOPUS(1) β the girlies' guide to merging all the branches
okay so bestie, welcome to git-octopus(1), from the git-octopus suit manual. yes i said "suit" and yes that's what it says, we don't ask questions, we slay. πβ¨ This one extends git-merge with branch naming patterns, and honestly? it's giving main character energy.
πΈ NAME πΈ
git-octopus β it extends git-merge with branch naming patterns. that's it, that's the vibe.
π SYNOPSIS π
git octopus [-n|-c] [-s <n>] [-e <pattern>] [<pattern>...]
git octopus -v
π¦ DESCRIPTION π¦
so <pattern> can be any usual refspec, or a naming pattern. patterns get resolved using git ls-remote, and then the resulting refs are handed straight to git merge. simple as.
if you hit conflicts, it tries to reuse conflict resolutions stored by git conflict in refs/conflicts/*. (peep git-conflict(1) for that one π)
and if a merge fails? it literally iterates over all the refs, computing merges with each ref (from HEAD) one by one, for diagnostic purposes. like a little detective π΅οΈββοΈ learn more about conflict management on the project's homepage.
β¨ OPTIONS β¨
-nβ leaves the repository back toHEAD. cleanup queen behavior.-cβ commit the resulting merge in the current branch. this is the default behavior unless-nis used oroctopus.commitis set to false. use this option to override the latter. π-s<n> β chunk mode: the merge is performed by subsets of <n> branches. this is meant to help reading the log graph when lots of branches are merged. honestly iconic for when the graph gets unreadable π-e<pattern> β exclude pattern: the merge excludes branches matching the <pattern>. bye felicia π«Ά-vβ prints the version ofgit-octopus.
π₯ EXAMPLES π₯
- merge check of the current branch with all feature branches and the
masterfrom origin:
$ git octopus -n origin/features/* origin/master
this is basically a merge check you would do before pushing your branch. no cap, do it before you push, your future self will thank you π
π CONFIGURATION π
octopus.commitβtrueby default. set to false behaves like-n.octopus.patternβ defines a branch naming pattern thatgit octopuswould use by default. use multiple lines to define several patterns. seegit-config(1).octopus.excludePatternβ defines a branch naming pattern thatgit octopuswill exclude by default.
π SEE ALSO π
git-merge(1), git-ls-remote(1), git-conflict(1).
π§ GIT-OCTOPUS π§
part of the git-octopus suit. periodt.
k that's the whole page bestie, go merge something cute π
βΏ git-octopus 1.4 βΏ 07/05/2023 βΏ β mwah, that's the source/version and date, signed off with love ππ¦π
π¦ where this page comes from
- epel 9: git-octopus 2.0-0.4.beta.3.el9.9 Β· LGPLv3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms