viscalyx / Viscalyx.Common

Common commands that adds or improves functionality or workflow in various scenarios.
MIT License
0 stars 1 forks source link

`Receive-GitBranch`: New command proposal #5

Open johlju opened 1 month ago

johlju commented 1 month ago

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.

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 40 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.