1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 17:55:24 +02:00
tldr/pages/common/glab.md

34 lines
712 B
Markdown
Raw Normal View History

2020-08-12 00:34:55 +01:00
# glab
> Work seamlessly with GitLab.
> Some subcommands such as `config` have their own usage documentation.
2025-05-11 20:03:01 +03:00
> More information: <https://gitlab.com/gitlab-org/cli/-/tree/main/docs/source>.
2020-08-12 00:34:55 +01:00
- Clone a GitLab repository locally:
2020-08-12 00:34:55 +01:00
`glab repo clone {{owner}}/{{repository}}`
2020-08-12 00:34:55 +01:00
- Create a new issue:
`glab issue create`
- View and filter the open issues of the current repository:
2020-08-12 00:34:55 +01:00
`glab issue list`
- View an issue in the default browser:
2025-05-11 20:03:01 +03:00
`glab issue view {{[-w|--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
2025-05-11 20:03:01 +03:00
`glab mr view {{[-w|--web]}} {{pr_number}}`
2020-08-12 00:34:55 +01:00
- Check out a specific pull request locally:
2020-08-12 00:34:55 +01:00
`glab mr checkout {{pr_number}}`