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

Demistify Buffer Overflow Vulnerability

Collection of articles, blog posts, lectures, tutorials... about Buffer Overflow Vulnerability.

Check and install php7.0-mbstring extention on Ubuntu 16.04 and Microsoft Windows

While learning Facebook SDK for PHP I overlooked one of system requirements preventing my code from running on my host. That is The mbstring extension. Facebook SDK for PHP's system requirements Check if mbstring is enabled root@ubuntu001:~# php -a Interactive mode enabled php > echo extension_loaded('mbstring'); php >exit root@ubuntu001:~# apt-cache search php7 | grep mbstring php7.0-mbstring - MBSTRING module for PHP root@ubuntu001:~# Install php7.0-mbstring root@ubuntu001:~# apt-get install php7.0-mbstring Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:   fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0   libjpeg-turbo8 libjpeg8 libmcrypt4 libtiff5 libvpx3 libxpm4 Use 'apt autoremove' to remove them. The following additional packages will be installed:   libapache2-mod-php7.0 php7.0-cli ph...

You are fired unless ...

...unless "The illiterate of the 21st century will not be those who cannot read and write, but those who cannot Learn , Unlearn , and Relearn ." -  Alvin Toffler