Documentation
WebsiteMineGitHubFaucet
  • Welcome to MakeOS
  • Introduction
    • Install
    • Quick Start
    • Set Up a Private Network
    • Get Test Coins
    • Track a Repository
    • What is MakeOS
    • How it Works
    • Tokenomics ($MAKE)
    • Dilithium (Deprecated)
    • Roadmap
    • Team
  • Concepts
    • Repository
      • Register a Repository
      • Initialize a New Repository
      • Repository Governance
      • Access Control Config
    • Namespace
    • Key
    • Issue Management
    • Merge Request
    • Transactions
      • Register a Repository
      • Send Coins
    • Validator
    • Host
    • Remote
  • JavaScript Console API
    • repo
    • pushkey
    • namespace
    • node
    • user
    • transaction
    • ticket
  • KIT CLI Reference
    • Overview
    • init
    • start
    • console
    • attach
    • key
      • create
      • gen
      • get
      • import
      • list
      • update
    • tx
      • get
    • repo
      • config
      • create
      • hook
      • init
      • vote
    • user
      • send
    • pk
      • register
    • sign
      • commit
      • note
      • tag
    • contributor
      • add
    • issue
      • close
      • create
      • list
      • read
      • reopen
      • status
    • mr
      • checkout
      • close
      • create
      • fetch
      • list
      • read
      • reopen
      • status
Powered by GitBook
On this page
  • Usage
  • Arguments
  • Options
  • Example

Was this helpful?

  1. KIT CLI Reference
  2. mr

checkout

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

Usage

kit mr checkout [options] [[remote] id]
Usage:
  kit mr checkout [flags] [[remote] id]

Flags:
  -b, --base             Checkout the base branch instead of the target branch
  -f, --force-checkout   Forcefully checkout while ignoring unsaved local changes
      --force-fetch      Forcefully fetch the branch (uncommitted changes will be lost)
  -h, --help             help for checkout
  -y, --yes              Automatically select 'Yes' for all confirm prompts

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

kit mr checkout "1"
PreviousmrNextclose

Last updated 4 years ago

Was this helpful?