Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to check the installed Git version.
Git
git [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'version' will not show the version.
Using 'clone' or 'init' are for other Git operations, not version checking.
✗ Incorrect
The git version command shows the installed Git version.
2fill in blank
mediumComplete the command to install Git on Ubuntu using apt.
Git
sudo apt-get [1] git Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' deletes packages instead of installing.
Using 'update' refreshes package lists but does not install.
✗ Incorrect
The apt-get install command installs packages like Git on Ubuntu.
3fill in blank
hardFix the error in the command to install Git on macOS using Homebrew.
Git
brew [1] git Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' deletes packages instead of installing.
Using 'update' refreshes Homebrew but does not install.
✗ Incorrect
Use brew install git to install Git on macOS with Homebrew.
4fill in blank
hardFill both blanks to update package lists and install Git on Debian-based Linux.
Git
sudo apt-get [1] && sudo apt-get [2] git
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping 'update' and 'install' commands.
Using 'remove' instead of 'install' to add Git.
✗ Incorrect
First, update package lists with apt-get update, then install Git with apt-get install git.
5fill in blank
hardFill all three blanks to clone a Git repository, change directory, and check Git version.
Git
git [1] https://github.com/user/repo.git && cd [2] && git [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'init' instead of 'clone' to copy the repo.
Changing directory to wrong folder name.
Using wrong command to check version.
✗ Incorrect
Use git clone to copy the repo, cd repo to enter it, and git version to check Git version.