BM: Baca dalam Bahasa Melayu
World 11: Rescue Center
Messy pull: abort
You will learn: how to back out of a pull that stopped with conflicts.
The problem
You pull. CONFLICT! You and Aisyah changed the same line. Too messy right now? This happens to everyone. You can always back out.
Try it
A pull with --rebase stops in the middle of a rebase. git status tells you how to leave.
Tap the line in git status that shows the way back.
0 of 1 found
Hint
Look near the end, for the word abort.Try it
Back out of the messy pull. Your work goes back to just before it.
Hint
Typegit rebase --abort, then press Enter.Check
Which exit fits? git status always tells you.
Drag a card into a box. Or tap the card, then tap the box.
Predict
You backed out. What about Aisyah’s commit?
Pick one answer.
You did it!
You can now back out of a messy pull, calmly.
Go deeper (optional)
Ready to try again? Pull once more and fix the clash. In a rebase: edit the file, git add it, then git rebase --continue. In a merge: edit, git add, then git commit. Unsure whose line wins? Ask your teammate first.
Bahasa Melayu
Anda pull. CONFLICT! Anda dan Aisyah ubah baris yang sama. Terlalu bersepah sekarang? Ini berlaku pada semua orang. Anda sentiasa boleh undur diri.
Pull dengan --rebase berhenti di tengah-tengah rebase. git status beritahu cara keluar.
Undur diri dari pull yang bersepah. Kerja anda kembali seperti sejurus sebelumnya.
git rebase --abort, kemudian tekan Enter.Jalan keluar yang mana sesuai? git status sentiasa beritahu.
Anda dah undur diri. Bagaimana dengan commit (titik simpan) Aisyah?
Kini anda boleh undur diri dari pull yang bersepah, dengan tenang.
You finished this before. Practice is always welcome!
Official docs: git pull · git rebase --abort · git merge --abort
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?