2020-08-12 00:34:55 +01:00
|
|
|
# glab
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
> Work seamlessly with GitLab from the command-line.
|
|
|
|
> Some subcommands such as `glab config` have their own usage documentation.
|
2021-07-02 20:22:57 +01:00
|
|
|
> More information: <https://github.com/profclems/glab>.
|
2020-08-12 00:34:55 +01:00
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- Clone a GitLab repository locally:
|
2020-08-12 00:34:55 +01:00
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
`glab repo clone {{owner}}/{{repository}}`
|
2020-08-12 00:34:55 +01:00
|
|
|
|
|
|
|
- Create a new issue:
|
|
|
|
|
|
|
|
`glab issue create`
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- View and filter the open issues of the current repository:
|
2020-08-12 00:34:55 +01:00
|
|
|
|
|
|
|
`glab issue list`
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- View an issue in the default browser:
|
|
|
|
|
|
|
|
`glab issue view --web {{issue_number}}`
|
|
|
|
|
|
|
|
- Create a merge request:
|
|
|
|
|
|
|
|
`glab mr create`
|
|
|
|
|
|
|
|
- View a pull request in the default web browser:
|
2020-08-12 00:34:55 +01:00
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
`glab mr view --web {{pr_number}}`
|
2020-08-12 00:34:55 +01:00
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- Check out a specific pull request locally:
|
2020-08-12 00:34:55 +01:00
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
`glab mr checkout {{pr_number}}`
|