GIT-FEATURE(1)
πΈ NAME πΈ
git-feature β this one lives in the Git Extras manual as GIT-FEATURE(1), and bestie, her whole job is right there in the title: Create/Merge feature branch π No extra lore, that's the mission, and she ate.
π¦ SYNOPSIS π¦
Not me opening this section and it's literally empty π The page ships no synopsis line at all, so no cap β the actual shapes are hanging out down in DESCRIPTION and OPTIONS, and that's where you should look.
β¨ DESCRIPTION β¨
Okay so here's the tea π She creates or merges the feature branch you name, and the branch name isn't vibes-based β it's literally three pieces stitched together: the PREFIX, the SEPARATOR, and the NAME, joined as one.
The default PREFIX is feature and the default SEPARATOR is /. Both can be changed β the page says peek OPTIONS and GIT CONFIG for the details, and you know she wouldn't send you there for nothing π
Now, the branch NAME? You can hand her multiple words and she'll join them with - πͺ Iconic behaviour.
β οΈ But listen, this part matters: if your branch name contains the word finish, or if it's another OPTION, you have to pass -- to stop OPTION parsing. Otherwise the shell is gonna read your branch name as flags and it's giving chaos π« The EXAMPLES below go into it β don't skip them, iykyk.
π OPTIONS π
Quick heads up before the list: on the page, these options are just listed by name with no write-up under them π so I'm keeping them exactly as they appear and not inventing behaviour, because we do not make stuff up about flags, periodt.
-a PREFIX,--alias PREFIXβ takes aPREFIX. This is the crew the DESCRIPTION points you to when it says the defaultPREFIXcan be changed β¨-s SEPARATOR,--separator SEPARATORβ takes aSEPARATOR. Same situation: this is one of the spots where yourSEPARATOR(default/) is set π-r [REMOTE_NAME],--remote [REMOTE_NAME]β takes an optionalREMOTE_NAME(see the square brackets, bestie π¦), so you can pass it or not. The examples section mentions publishing a feature upstream, but the page doesn't spell this one out further, ngl.--from START_POINTβ takes aSTART_POINT. That's all the page gives us here πfinishβ not a dash-flag, she's a bare word command, and the page's own DESCRIPTION name-checksfinishas one of those things you may need--for when it shows up inside a branch name. Also, one of the examples is literally about finishing a feature π--squashβ a flag, no argument. One of the examples is about finishing a feature with a--squashmerge, so likeβ¦ connect those dots yourself, bestie πNAMEβ this is your branch name, and per the DESCRIPTION it can be multiple words, which get joined with-π
π GIT CONFIG π
You can set your default branch prefix and separator with git config options, so you don't have to retype them every single time π§ That's the whole section, but it's a generous section.
git-extras.feature.prefixβ your default branch prefix, configured here πΈgit-extras.feature.separatorβ your default branch separator, configured here β
π₯ EXAMPLES π₯
Real talk: the page lists these example headings but no command lines live under them, and I am not about to fabricate commands and hand them to you as fact π So here's every single example the page names, in order, untouched:
- Start a new feature β¨
- Finish a feature with
--no-ffmerge π«Ά - Finish a feature with
--squashmerge π - Publish a feature upstream π¦
- Use custom branch prefix π
- Use custom branch separator πΈ
- Use custom branch prefix and separator from git config with multiple words π
- Use a
git-featureoption or thefinishcommand as part of a branch name π
That last one is the -- situation from the DESCRIPTION, fr fr.
π AUTHOR π
Written by JesΓΊs Espino <jespinog@gmail.com>
Modified by Mark Pitman <mark.pitman@gmail.com>
Modified by Carlos Prado <carlos.prado@cpradog.com>
Modified by Austin Ziegler <halostatue@gmail.com>
Four whole icons on one page, we love to see it π
π REPORTING BUGS π
Found a bug? Take it straight to:
<https://github.com/tj/git-extras/issues>
No side-quests, no DMs, the issue tracker is the main character here π«Ά
π SEE ALSO π
Okay bestie, that's the whole page π This was git-feature(1) from the Git Extras collection, dated May 2026 β go make a branch, go finish a branch, and remember: -- when the vibes get flaggy. Slay π
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms