Skip to main content

GitLab CLI: Notes

Install GitLab CLI - glab - using winget

Install GitLab CLI - glab - using winget
PS F:\Projects\gitlab> glab auth login
? What GitLab instance do you want to log into? GitLab.com
- Logging into gitlab.com

Tip: you can generate a Personal Access Token here https://gitlab.com/profile/personal_access_tokens
The minimum required scopes are 'api' and 'write_repository'.
? Choose default git protocol HTTPS
? Authenticate Git with your GitLab credentials? Yes
- glab config set -h gitlab.com git_protocol https
✓ Configured git protocol
- glab config set -h gitlab.com api_protocol https
✓ Configured API protocol
✓ Logged in as tuyendq
PS F:\Projects\gitlab>

PS F:\Projects\gitlab> glab repo create lthwgitlab
? Create a local project directory for Tuyen Dang / lthwgitlab? Yes
Initialized empty Git repository in F:/Projects/gitlab/lthwgitlab/.git/
✓ Initialized repository in './lthwgitlab/'
PS F:\Projects\gitlab> cd .\lthwgitlab\
PS F:\Projects\gitlab\lthwgitlab> gci -Force


    Directory: F:\Projects\gitlab\lthwgitlab


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d--h--          8/4/2021   2:02 PM                .git


PS F:\Projects\gitlab\lthwgitlab>

Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'