Fork repository instructor dan clone ke komputer sendiri.
Repository: github.com/opariffazman/bootcamp-devops
-
Navigate to repository:
- Open browser →
https://github.com/opariffazman/bootcamp-devops
- Open browser →
-
Fork repository:
- Click "Fork" button (top right, beside Star)
- Pastikan "Copy the main branch only" is checked
- Click "Create fork"
-
Wait for fork:
- GitHub akan buat copy ke account anda
- URL akan jadi:
github.com/[your-username]/bootcamp-devops
✅ Success: Anda akan nampak banner "forked from opariffazman/bootcamp-devops"
-
Get SSH URL dari YOUR fork:
- Di YOUR forked repo page
- Click "Code" button (hijau)
- Pilih "SSH" tab
- Copy URL (format:
git@github.com:your-username/bootcamp-devops.git)
-
Open terminal dan navigate ke folder kerja:
# Contoh: Navigate ke Documents
cd ~/Documents
# Atau buat folder baru
mkdir devops-labs
cd devops-labs- Clone repository:
git clone git@github.com:[your-username]/bootcamp-devops.gitGantikan [your-username] dengan username GitHub anda!
Expected output:
Cloning into 'bootcamp-devops'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 15 (delta 2), reused 15 (delta 2), pack-reused 0
Receiving objects: 100% (15/15), done.
Resolving deltas: 100% (2/2), done.
- Enter directory:
cd bootcamp-devops- Verify clone successful:
# Check files
ls -la
# Check git status
git status
# Check remote
git remote -vExpected output untuk git remote -v:
origin git@github.com:your-username/bootcamp-devops.git (fetch)
origin git@github.com:your-username/bootcamp-devops.git (push)
Upstream adalah link ke original repository (instructor punya).
git remote add upstream git@github.com:opariffazman/bootcamp-devops.gitVerify:
git remote -vExpected output:
origin git@github.com:your-username/bootcamp-devops.git (fetch)
origin git@github.com:your-username/bootcamp-devops.git (push)
upstream git@github.com:opariffazman/bootcamp-devops.git (fetch)
upstream git@github.com:opariffazman/bootcamp-devops.git (push)
Penjelasan:
- origin = your fork (anda boleh push)
- upstream = original repo (anda tak boleh push, hanya fetch)
- Repository forked successfully
- Fork cloned to local computer
- Inside
bootcamp-devopsdirectory -
originremote pointing to YOUR fork -
upstreamremote pointing to original repo - Can see repository files