Summary - Installation
- Git course
- Beginner
- Lesson 8/80
- 5 min
Combine the install steps to verify the Git version.
Verifying the Git Installation
After installing Git, you can check whether it was installed correctly through the terminal. Simply run the git --version command. The terminal displays the installed Git version as text.
git --version
git version 2.45.0Practice Report the Installation Result
Create a status variable with the value Installed to indicate that installation is complete. Then assign the git --version command to the check variable. Print both values on separate lines.
Starter code
// Kurulum durumunu tanımla
// Sürüm kontrol komutunu tanımla
// İki bilgiyi yazdırSample solution
const status = "Installed";
const check = "git --version";
console.log(status);
console.log(check);Expected output
Installed git --version
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 How do you check whether Git was installed successfully?
- By formatting the computer
- By running the git --version command Correct answer
- By running the git --delete command
- By restarting the browser
Explanation: The <code>git --version</code> command displays the installed Git version. If the version information appears, Git is recognized by the terminal.
2 Identify the Terminal Application
const app = "____";
console.log(app);
const app = "Terminal";
console.log(app);
Explanation: Git commands can be run in the operating system's terminal application.
3 Installation Verification
| Term | Meaning |
|---|---|
git --version |
Displays the version |
git version 2.45.0 |
Example version output |
Terminal |
Runs commands |
Git kurulumu |
Makes Git available |