Skip to content

Add start-point option to git feature #861

@smeijer

Description

@smeijer

Currently, git feature creates a new branch based on the current active one.

As git flow specifies that feature branches should be based on develop, it would be nice to be able to specify a start-point, so we don't need to switch branches first.

After finishing a feature, I currently need to run 3 commands to create my new feature branch:

git checkout develop
git pull
git feature my-feat

It would be awesome if we could simplify those 3 lines to a single command:

# git feature <branchname> [<start-point>]
  git feature my-feat develop 

Regardless of my active branch, git feature my-feat develop would:

  • pull/fetch the commits from origin
  • create a new branch with develop as start-point,
  • check out the new feature branch.

Does git-extras have global options? It would be awesome to be able to set the default start-point trough a global option

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions