lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab

View the Project on GitHub zaquestion/lab

lab mr checkout

Checkout an open merge request

Synopsis

Checkout an open merge request using the MR’s source branch name as local branch name; this behavior can be changed using –branch option.

lab mr checkout [remote] [<MR id or branch>] [flags]

Examples

lab mr checkout origin 10
lab mr checkout upstream -b a_branch_name
lab mr checkout a_remote -f
lab mr checkout upstream --https
lab mr checkout upstream -t

Options

  -b, --branch string   checkout merge request with <branch> name
  -f, --force           force branch and remote reference override
  -h, --help            help for checkout
      --http            checkout using HTTP protocol instead of SSH
  -t, --track           set branch to track remote branch, adds remote if needed

Options inherited from parent commands

      --debug      Enable debug logging level
      --no-pager   Do not pipe output into a pager
      --quiet      Turn off any sort of logging. Only command output is printed

SEE ALSO

Auto generated by spf13/cobra on 3-Jul-2022