Git Github Workshop
Git Github Workshop
Git Github Workshop
Git &
Github
Chandra Bose
• GDSC Lead MLRITM • 8x Hackathon winner
• Initialize • Configure
🚨 What you should know
#Repository -> project folder
• git init -> inisalisasi repo
#Commit -> riwayat perubahan • git clone -> duplicate repo
#Checkout -> berpindah ke commit lain • git commit -m “ ....” -> pesan commit
#Branch -> cabang dari commit • git add . -> menambahkan semua file
#Merge -> gabungan dua branch • git log -> melihat semua commit yang dilakukan
#Remote -> alamat repo project • git status -> melihat apa ada file yang
#Clone -> duplicate repo dari remote belum ditambahkan
#Push -> mengirim commit ke repo • git checkout -> restore file
#Pull -> getl update dari repo(merge) • git branch -> mengecek ada berapa
#Fetch -> getl update dari repo(no merge) branch
Version Control Sistem
?
?
Git ?
Git is a software which is used to keep track of all
the changes of your project.
New Feature
• Track Changes
• Code Review
https://git-scm.com/downloads
https://github.com/
Creating Github account
https://github.com/
Lets dive into
Local Repo
git commit
Staging Index
git add
Working Area
Local
Git Life cycle of a file
Stages
Untracked Git isn't aware of these files, Happens to newly created files.
Master (default)
Child branch - feature 2
. git
Master
Child branch - feature 2
$ git checkout -b name
branch name
• To add a new branch.
Local Repo
git commit
Staging Index
git add
Working Area
Local
$ git remote add name url
remote name remote url
Remote repo
url
Push & Pull
• git push cmd is used to update the remote repo
with the local changes you made in your local
branch.
@gdsc-mlritm [email protected]