0
0
Gitdevops~20 mins

Installing Git - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Git Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Check Git Version After Installation
You just installed Git on your system. What will be the output of the command git --version if Git is installed correctly?
Git
git --version
Agit version 2.40.0
BGit is not recognized as an internal or external command
Ccommand not found: git
Derror: unknown option '--version'
Attempts:
2 left
💡 Hint
The command git --version shows the installed Git version if Git is installed correctly.
🧠 Conceptual
intermediate
1:30remaining
Default Git Installation Location on Linux
After installing Git on a typical Linux system using the package manager, where is the Git executable usually located?
A/home/user/git
B/etc/git
C/usr/bin/git
D/var/lib/git
Attempts:
2 left
💡 Hint
Executables installed by package managers on Linux are usually in system binary folders.
Troubleshoot
advanced
2:00remaining
Fixing Git Not Found After Installation on Windows
You installed Git on Windows but running git --version in Command Prompt returns 'git is not recognized as an internal or external command'. What is the most likely cause?
AYou must run Command Prompt as administrator to use Git
BGit installation files are corrupted
CYou need to restart the computer after installation
DGit was not added to the system PATH environment variable during installation
Attempts:
2 left
💡 Hint
Check if the system knows where to find the Git executable.
🔀 Workflow
advanced
2:00remaining
Installing Git on Ubuntu Using Terminal
Which sequence of commands correctly installs Git on Ubuntu and verifies the installation?
Asudo apt update && sudo apt install git -y && git --version
Bsudo yum install git && git --version
Csudo pacman -S git && git --version
Dsudo dnf install git && git --version
Attempts:
2 left
💡 Hint
Ubuntu uses apt package manager.
Best Practice
expert
2:30remaining
Choosing Git Installation Method for Continuous Integration Server
For a continuous integration (CI) server that runs automated builds, which Git installation method is best to ensure consistent and repeatable builds?
AInstall Git using the system package manager and lock the version
BUse a Docker container with a pre-installed specific Git version
CDownload and install the latest Git manually before each build
DUse Git installed by any user on the server without version control
Attempts:
2 left
💡 Hint
Consider isolation and version consistency in CI environments.