March 2025

GitLab, GitLab Installation

Install GitLab

This page is the first step for GitLab Step 1: Install Git 1-For Linux (Ubuntu/Debian-based)sudo apt update && sudo apt install git -y 1-For macOSbrew install git # If you don’t have Homebrew, install it first: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) 2-Once installed, check the version to confirm:git –version Step 2: Configure Gitgit config –global

Cloud Compute, GCP

Increase Storage of a VM

Increase the Storage of a VM in Google Cloud Platform (GCP) This way helps to increase the VM disk size without STOP. Resize the Persistent Disk After resizing the disk in GCP, run the following commands inside your VM: Check the disk size by lsblk Resize the filesystem: If using ext4 : sudo resize2fs /dev/sdb1

Codes, Synchronization

DownSync the Folders

Check the directories(source-destination)Check the directories(target-destination) First, take a backup of the destionation files with. -zip -r files ‘folder name put date) ‘the folder’s name’ First, take a backup of the source files with.-zip -r files ‘folder name put date) ‘the folder’s name’ Rsync -avc  source path /. Space / target path/ Make sure to replace

Codes, Synchronization

Code Sync

Code sync if you want code sync Duplicate the target branch Go to repo settings Cancel the protection on the main repo Delete it Go to main branch Ducplicate the main branch as the target branch Bingo – successful code sync

Codes, GitLab

GitLab CLI Commands

In GITLAB CLI (From local terminal) • for create a new branch : – git checkout -b • for delete an existing branch in local : -git branch -d • for delete an existing branch in REMOTE : git push origin –delete “branch name” See Branches Create a Branch Delete a Branch Switch Branches Synchronize Branches

Scroll to Top