Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:49:08+00:00 2026-06-06T15:49:08+00:00

I have a large-ish project that I’m working on which uses git as the

  • 0

I have a large-ish project that I’m working on which uses git as the VCS. At any given time I’m working on implementing a few features/bugfixes, etc. For any given feature/bug, It would be nice to create a hierarchy of branches — e.g.

$ git branch
  feature1
       sub-branch1
       sub-branch2
       sub-branch3
  feature2
       sub-brancha
      *sub-branchb  #<--currently checked out
       sub-branchc
  bugfix1
       sub-branch-foo

$ git checkout sub-brancha
$ git branch
  feature1
       sub-branch1
       sub-branch2
       sub-branch3
  feature2
      *sub-brancha  #<--currently checked out
       sub-branchb  
       sub-branchc
  bugfix1
       sub-branch-foo

Is it possible to do something like this, or do I need to adopt a more primitive naming scheme?

EDIT

To make it slightly more concrete what I’m looking for, if feature1 is a git branch, then in the example above, sub-branch1 would all have been created by git checkout -b sub-branch1 from the feature1 branch (which is branched from master). e.g.:

$ git checkout master
$ git checkout -b feature1
$ git checkout -b testing
$ git branch
master
   feature1
     *testing
$ git checkout master
$ git checkout -b feature2
$ git branch
master
   feature1
      testing
  *feature2

Having git branch simply organize branches by where they came from (with a little extra indentation) is probably good enough for my purposes … Although super bonus points if I can have:

$ git branch
  feature1
       testing
  feature2
       testing
  bugfix1
       sub-branch-foo

With some way to manage the name-conflict between “feature1/testing” and “feature2/testing”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:49:09+00:00Added an answer on June 6, 2026 at 3:49 pm

    You can use a naming schemata like feature1/sub-brancha, feature2/sub-branchb and so on, the slash in the name is not a problem for git. However, the branches will still be handled as normal branches (but I wouldn’t know how one could handle subbranches differently). The git branch command will list the branches of course with its full name and not the way it’s in the example.

    Interestingly, the naming schemata including slashes will create a directory hierarchy in .git/refs/heads/. Maybe that’s useful for handling the subbranches with some low level commands?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large-ish project that contains one class that reads from a file
I have a large-ish PHP project (hundreds of files) that I've been brought in
I have a large project that uses the Qt framework and am trying to
I have a large-ish web project which is migrating from classic ASP to ASP.NET
I have a large(ish) COM object that works as the back end of my
I have an existing large(ish) PHP web app (using Apache and MySQL) which now
I have a large-ish file (4-5 GB compressed) of small messages that I wish
I have a large-ish Visual Studio 2010 solution (~110 C# projects). One project (let's
I have several large projects that I work on. Depending on the project and
In SQL Server 2005, I have a query that involves a bunch of large-ish

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.