checkout
The checkout
command fetches and checks out the target or base branch of a merge request.
Usage
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
Last updated