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

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.

How to charge your device from USB Port

First of all, check BIOS Settings of your laptop or desktop Dell Look for USB PowerShare BIOS Settings: USB PowerShare Lenovo Look for Always On USB Charge in Off Mode BIOS Settings: Enable Always On USB Charge in Off Mode

Kali Linux on Raspberry Pi 2

Download Kali Linux for Raspberry Pi 2 Use xzcat to decompress and then dd to image Kali Linux to microSD on Windows 10. or use 7-zip to extract kali-linux-2019.1-rpi3-nexmon.img image file, then use rufus to write image to microSD card Login Kali Linux with default username root and password toor Tight VNC Server root@kali:~# apt install tightvncserver root@kali:~# vncserver :1 You will require a password to access your desktops. Password: Warning: password truncated to the length of 8. Verify: Would you like to enter a view-only password (y/n)? n xauth: file /root/.Xauthority does not exist New 'X' desktop is kali:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/kali:1.log root@kali:~# Kill vncserver root@kali:~# vncserver -kill :1 Killing Xtightvnc process ID 16102 root@kali:~#