BM: Baca dalam Bahasa Melayu
World 0: Start Here
Install Git
You will learn: how to install Git on your own computer and check that it works.
The problem
This line means Git is installed. Does your own computer show it yet? Let’s find out.
Try it
Type git --version here first. It asks Git for its version number.
Hint
Two dashes:git --version.Try it
Pick your computer. Do each step, then tick it.
Which computer do you use?
Hint
Not sure? Windows has a Start button. A Mac has an Apple menu.Watch
On Windows, use Git Bash. It comes with Git. pwd, ls and cd work there, just like here.
Predict
You type git --version. The terminal says command not found. What does that mean?
Pick one answer.
Check
You just installed Git. Your old terminal still says command not found. What do you try first?
Pick one answer.
You did it!
You can now install Git and check it with git --version.
Go deeper (optional)
Prefer typing? On Windows, winget install --id Git.Git -e --source winget installs Git. On a Mac with Homebrew, use brew install git. To update Git later, install it again the same way.
Bahasa Melayu
Baris ini maksudnya Git dah dipasang. Komputer anda sendiri dah tunjuk baris ini? Jom kita semak.
Taip git --version di sini dulu. Ia tanya Git nombor versi (version) dia.
git --version.Pilih komputer anda. Buat setiap langkah, kemudian tandakan.
Di Windows, guna Git Bash. Ia datang bersama Git. pwd, ls dan cd berfungsi di situ, sama macam di sini.
Anda taip git --version. Terminal kata command not found. Apa maksudnya?
Anda baru pasang Git. Tapi terminal lama masih kata command not found. Apa yang anda cuba dulu?
Kini anda boleh pasang Git dan semak dengan git --version.
You finished this before. Practice is always welcome!
Official docs: Download Git · git --version
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?