checkout
The checkout command fetches and checks out the target or base branch of a merge request.

Usage

1
kit mr checkout [options] [[remote] id]
Copied!
1
Usage:
2
kit mr checkout [flags] [[remote] id]
3
4
Flags:
5
-b, --base Checkout the base branch instead of the target branch
6
-f, --force-checkout Forcefully checkout while ignoring unsaved local changes
7
--force-fetch Forcefully fetch the branch (uncommitted changes will be lost)
8
-h, --help help for checkout
9
-y, --yes Automatically select 'Yes' for all confirm prompts
Copied!

Arguments

    remote - (Optional) The name of the remote to fetch from (Default: origin).
    id - The merge request ID.

Options

    -b, --base - Instead of checking out the target branch by default, check out the base branch.
    -f, --force-checkout - Checks out the merge request branch irrespective of unsaved changes on the current branch. Unsaved changes will be lost.
    --force-fetch - Allows the merge request branch to be forcefully fetched.
    -y, --yes - Respond with ‘Yes’ in situations where user confirmation is required.
    -h, --help - Prints out a help message.

Example

1
kit mr checkout "1"
Copied!
Last modified 10mo ago