0
0
Gitdevops~10 mins

Why workflow agreement matters in Git - Test Your Understanding

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

Complete the command to clone a repository from GitHub.

Git
git [1] https://github.com/user/repo.git
Drag options to blanks, or click blank then click option'
Aclone
Bpush
Ccommit
Dmerge
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'clone' will try to send changes, not download.
2fill in blank
medium

Complete the command to create a new branch named 'feature'.

Git
git [1] feature
Drag options to blanks, or click blank then click option'
Amerge
Bcheckout
Cbranch
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'checkout' creates and switches branches, not just create.
3fill in blank
hard

Fix the error in the command to switch to the 'develop' branch.

Git
git [1] develop
Drag options to blanks, or click blank then click option'
Acommit
Bclone
Cpush
Dcheckout
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' tries to save changes, not switch branches.
4fill in blank
hard

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

Git
git [1] -b [2]
Drag options to blanks, or click blank then click option'
Acheckout
Bfeature
Cdevelop
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'checkout' will not create or switch branches.
5fill in blank
hard

Fill all three blanks to merge the 'feature' branch into 'main' and push changes.

Git
git [1] feature && git [2] origin [3]
Drag options to blanks, or click blank then click option'
Amerge
Bpush
Cmain
Dpull
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pull' instead of 'push' will fetch changes, not send them.