Skip to content

Receive-GitBranch: New command proposal #5

@johlju

Description

@johlju

Command proposal

This command should

  1. checkout the specified local branch (or default branch name)
  2. run 'git pull' which will use the default method configured for git pull, or if -Rebase it will fetch upstream branch and rebase the local branch using the upstream branch

Proposed parameters

Parameter Mandatory Data type Description Default value Allowed values
BranchName No String Specifies the local branch name 'main' n/a
UpstreamBranchName No String Specifies the local branch name 'main' n/a
Rebase No [Switch] Specifies that it will fetch upstream branch and rebase the local branch using the fetched upstream branch None n/a

Special considerations or limitations

Having configure git config --global pull.rebase true will make the commands default behavior do a rebase using git pull.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions