0
0
Gitdevops~10 mins

Creating aliases for common commands in Git - Interactive Practice

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

Complete the command to create a git alias named 'co' for 'checkout'.

Git
git config --global alias.co [1]
Drag options to blanks, or click blank then click option'
Acommit
Bcheckout
Cclone
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'checkout' for the alias 'co'.
2fill in blank
medium

Complete the command to create a git alias named 'st' for 'status'.

Git
git config --global alias.st [1]
Drag options to blanks, or click blank then click option'
Astatus
Bstash
Cstage
Dshow
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'stash' with 'status' for the alias 'st'.
3fill in blank
hard

Fix the error in the command to create a git alias named 'br' for 'branch'.

Git
git config --global alias.br [1]
Drag options to blanks, or click blank then click option'
Abranches
Bbrnch
Cbranchs
Dbranch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'branches' or misspelled versions instead of 'branch'.
4fill in blank
hard

Fill both blanks to create a git alias named 'lg' that shows a pretty log graph.

Git
git config --global alias.lg '[1] --graph --oneline --decorate [2]'
Drag options to blanks, or click blank then click option'
Alog
Bstatus
C--all
Dbranch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' instead of 'log' or missing '--all' option.
5fill in blank
hard

Fill all three blanks to create a git alias named 'unstage' that resets the index for a file.

Git
git config --global alias.unstage '[1] [2] [3]'
Drag options to blanks, or click blank then click option'
Areset
B--mixed
CHEAD
D--hard
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--hard' which resets working directory too, not just unstaging.