tldr/pages/common/glab.md

34 lines
697 B
Markdown
Raw Normal View History

2020-08-12 00:34:55 +01:00
# glab
> Work seamlessly with GitLab from the command-line.
> Some subcommands such as `glab config` have their own usage documentation.
> More information: <https://github.com/profclems/glab>.
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:
`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
`glab mr view --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}}`