0
0
Gitdevops~10 mins

What is Git - Interactive Quiz & Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to check the current Git version.

Git
git [1]
Drag options to blanks, or click blank then click option'
Acommit
Bclone
Cpush
D--version
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.
2fill in blank
medium

Complete 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'
Aclone
Binit
Cadd
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'clone' tries to copy an existing repository instead.
Using 'status' only shows the current state of files.
3fill in blank
hard

Fix 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'
Astatus
Bstat
Cstash
Dstage
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.
4fill in blank
hard

Fill 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'
Aadd
Bcommit
Cpush
Dclone
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.
5fill in blank
hard

Fill 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'
Aclone
Brepo
Cstatus
Dinit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'init' instead of 'clone' does not copy remote repo.
Using wrong folder name after cd causes errors.