BM: Baca dalam Bahasa Melayu
World 11: Rescue Center
Merge panic
You will learn: how to back out of a scary merge, calmly.
The problem
CONFLICT! Scary words fill your screen. Your heart races. Breathe: nothing is lost. This happens to everyone. Here’s the safe way out.
Try it
git status always tells you where you are. Find the exit.
Tap the line that shows the way back.
0 of 1 found
Hint
Look for the word abort.Try it
Cancel the merge. Go back to how things were.
Hint
Typegit merge --abort, then press Enter.Predict
After git merge --abort, where is your work?
Pick one answer.
Check
Fix it now, or back out? Sort each moment.
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now back out of a scary merge, calmly.
Go deeper (optional)
The merge worked, but you regret it? Not pushed: git reset --hard ORIG_HEAD jumps back to just before it. Careful, that wipes uncommitted changes. Already pushed: git revert -m 1 HEAD makes an undo commit and keeps main’s side. Fixing conflicts step by step is in World 3.
Bahasa Melayu
CONFLICT! Perkataan menakutkan penuh di skrin. Jantung anda berdebar. Tarik nafas: tiada yang hilang. Ini berlaku pada semua orang. Ini cara selamat untuk keluar.
git status sentiasa beritahu di mana anda berada. Cari jalan keluar.
Batalkan merge (cantum). Kembali seperti sebelum ini.
git merge --abort, kemudian tekan Enter.Selepas git merge --abort, di mana kerja anda?
Baiki sekarang, atau undur diri? Susun setiap keadaan.
Kini anda boleh undur diri dari merge yang menakutkan, dengan tenang.
You finished this before. Practice is always welcome!
Official docs: git merge --abort · git revert -m · git reset
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?