Session 3 - VCS Part 1-1
Session 3 - VCS Part 1-1
Version Control
System Part 1
Experience :
● Senior Backend Engineer at Horego (Jun 2023-Now)
● Private Mentor with predicate “Duta Besar” at
Superprof Indonesia (2020-Now)
● Backend Engineer at Printerous (Nov 2021-May 2023)
● Full Stack Developer at MatchKerja (Jan 2021-Aug
2021)
● Founder & Web Developer at Gazeboin (Nov 2017-Oct
2020)
Understand the differences between
01
Class
Git, Github and Gitlab
02 Install and configure Git for use
Agenda 03
Use Git to manage files using CLI
commands
The Details 04 Manage Remote Repositories
Understand The
Differences Between
Git, Github and
Gitlab
Version Control is a system that records
changes to a file or set of files over time so
that you can recall specific versions later.
What is Version
Control System?
To better understand Git, we must
understand version control first.
Github and
Gitlab?
>
Platform’s main advantages and
disadvantages and determine their
use cases: link
Install and
Configure Git
Ensure Git is installed
Run this command in your terminal:
git /-version
Installing Git
Download & open downloaded file
https://github.com/git-for-windows/git/releases/download/
v2.43.0.windows.1/Git-2.43.0-32-bit.exe
Before you start using Git, you have
to make install it on your computer. Mac OS via Homebrew
Usually, Git is pre-installed in Linux Run this command in your terminal:
and Mac OS.
brew install git
You should skip this step if your Git is already
installed. Linux via apt
Run this command in your terminal:
Selanjutnya
sudo apt-getdalam ruang
install kerja teknologi
git
Register to Github
You can skip this step if already have an account.
https://github.com/signup
Configuring
your Git
Register to Github and configure
your Git.
Selanjutnya dalam ruang kerja teknologi
Configure your Git
You should skip this step if your Git already Run this command in your terminal / command prompt:
configured with your Github account.
git config /-global user.name “<username>”
git config /-global user.email “<email>”
Use Git to manage
files using CLI
commands
Open your terminal
On Windows, we will always use Git Bash instead of
Powershell or Command Prompt as our terminal. But, on
Linux or Mac OS, you can use any Terminal.
mkdir <folder-name>
Initiate Git (1) cd <folder-name>
git init
git status
Manage
Remote
Repositories (1)
Manage vcs.git
https://github.com/zhanang19/bootcamp-harisenin-
vcs
Selanjutnya dalam ruang kerja teknologi
Clone remote repo on different folder/computer
Let say we want to clone existing remote repo to our computer
with named folder `bootcamp-vcs`
Remote
Repositories (3)