0
0
Linux CLIscripting~10 mins

Repository management in Linux CLI - Interactive Code Practice

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

Complete the code to clone a repository from GitHub.

Linux CLI
git [1] https://github.com/user/repo.git
Drag options to blanks, or click blank then click option'
Aclone
Bpull
Cpush
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'clone' will not copy the repository.
Using 'push' or 'pull' are for syncing changes, not cloning.
2fill in blank
medium

Complete the code to add all changed files to the staging area.

Linux CLI
git [1] .
Drag options to blanks, or click blank then click option'
Acommit
Bstatus
Cpush
Dadd
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' directly without adding files first.
Using 'push' or 'status' do not stage files.
3fill in blank
hard

Fix the error in the command to commit changes with a message.

Linux CLI
git commit -m [1]
Drag options to blanks, or click blank then click option'
A"Initial commit"
BInitial commit
C'Initial commit
DInitial commit"
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes causes the shell to treat words separately.
Using mismatched or missing quotes causes errors.
4fill in blank
hard

Fill both blanks to create a new branch and switch to it.

Linux CLI
git [1] [2] && git checkout [2]
Drag options to blanks, or click blank then click option'
Abranch
Bcheckout
Cfeature
Dmain
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'checkout' to create a branch without '-b' option.
Switching to a branch that does not exist.
5fill in blank
hard

Fill all three blanks to push the local branch to the remote repository.

Linux CLI
git [1] [2] [3]
Drag options to blanks, or click blank then click option'
Apush
Borigin
Cfeature
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'push' to send changes.
Mixing up remote and branch names.