0
0
Gitdevops~10 mins

Why understanding internals 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 check the current branch in Git.

Git
git [1]
Drag options to blanks, or click blank then click option'
Acommit
Bbranch
Cclone
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'branch' to see branches.
2fill in blank
medium

Complete the command to view the commit history in Git.

Git
git [1]
Drag options to blanks, or click blank then click option'
Afetch
Bstatus
Cinit
Dlog
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' instead of 'log' to see commit history.
3fill in blank
hard

Fix the error in the command to add all changes to staging.

Git
git [1] .
Drag options to blanks, or click blank then click option'
Apush
Bmerge
Cadd
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'add' to stage changes.
4fill in blank
hard

Fill both blanks to switch to the new-feature branch.

Git
git [1] [2]
Drag options to blanks, or click blank then click option'
Acheckout
Bbranch
Cnew-feature
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'branch' instead of 'checkout' to switch branches.
5fill in blank
hard

Fill all three blanks to show the difference between the staged changes and the last commit.

Git
git [1] [2] [3]
Drag options to blanks, or click blank then click option'
Adiff
B--staged
CHEAD
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' instead of 'diff' to see changes.