Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to check the current Git version.
Git
git [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of '--version' will try to make a commit.
Using 'push' or 'clone' are for other Git actions, not version info.
✗ Incorrect
The git --version command shows the installed Git version.
2fill in blank
mediumComplete the command to create a new Git repository in the current folder.
Git
git [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'clone' tries to copy an existing repository instead.
Using 'status' only shows the current state of files.
✗ Incorrect
The git init command creates a new Git repository in your current folder.
3fill in blank
hardFix the error in the command to check the status of files in Git.
Git
git [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stat' causes an error because it is not a Git command.
Using 'stash' saves changes temporarily, not shows status.
✗ Incorrect
The correct command to see file changes is git status. 'stat' is not a Git command.
4fill in blank
hardFill both blanks to add all files and commit with a message.
Git
git [1] . && git [2] -m "Initial commit"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'commit' tries to send changes to remote.
Using 'clone' is for copying repositories, not committing.
✗ Incorrect
git add . stages all files, and git commit -m "message" saves the changes with a message.
5fill in blank
hardFill all three blanks to clone a repository, change directory, and check status.
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' does not copy remote repo.
Using wrong folder name after cd causes errors.
✗ Incorrect
git clone copies the repo, cd repo moves into it, and git status shows file changes.