Default suggestions for branch names are bad #181

Open
pksunkara opened this Issue Dec 22, 2011 · 4 comments

Comments

Projects
None yet
4 participants
@pksunkara

https://github.com/nvie/gitflow/blob/develop/git-flow-init#L240
https://github.com/nvie/gitflow/blob/develop/git-flow-init#L253
https://github.com/nvie/gitflow/blob/develop/git-flow-init#L267
https://github.com/nvie/gitflow/blob/develop/git-flow-init#L281

All the default suggestions above should be feature-, release-, hotfix-, support- respectively

Generally some git refs are given as refs/remotes/origin/master used shortly as origin/master where origin is the remote name and master is the branch name

If you use feature/login as branch name the ref will be origin/feature/login which can be interpreted as

remote -> origin && branch -> feature/login
remote -> origin/feature && branch -> login

To remove this ambiguity, people shouldn't use / in either remote name or branch names.

Therefore the default suggestions above, feature/, release/, hotfix/, support/ are very bad for git usage.

@kennethreitz

This comment has been minimized.

Show comment Hide comment
@kennethreitz

kennethreitz Dec 22, 2011

I highly disagree, personally.

It allows for great namespacing and branch organization.

I highly disagree, personally.

It allows for great namespacing and branch organization.

@coderarity

This comment has been minimized.

Show comment Hide comment
@coderarity

coderarity Dec 22, 2011

Yeah, this is an important change to the defaults. In addition to being a little annoying to type out the different defaults, it would help new users not face this ambiguity.

Yeah, this is an important change to the defaults. In addition to being a little annoying to type out the different defaults, it would help new users not face this ambiguity.

@kennethreitz

This comment has been minimized.

Show comment Hide comment
@kennethreitz

kennethreitz Dec 22, 2011

Many tools (e.g. GitX) group branches of the same namespace into folders. It works quite well.

Many tools (e.g. GitX) group branches of the same namespace into folders. It works quite well.

@bobthecow

This comment has been minimized.

Show comment Hide comment
@bobthecow

bobthecow Dec 29, 2011

I'm with @kennethreitz

I'm with @kennethreitz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment