0
0
Gitdevops~10 mins

Why stashing saves work temporarily 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 save your current changes temporarily using git stash.

Git
git [1]
Drag options to blanks, or click blank then click option'
Astash
Bpush
Ccommit
Dpull
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' instead of 'stash' saves changes permanently.
Using 'push' sends changes to remote, not temporary save.
Using 'pull' updates your local repo, not saving changes.
2fill in blank
medium

Complete the command to see the list of all stashed changes.

Git
git [1] list
Drag options to blanks, or click blank then click option'
Alog
Bstash
Cstatus
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit list' which is invalid.
Using 'git status list' which does not exist.
Using 'git log list' which shows commit logs, not stashes.
3fill in blank
hard

Fix the command to apply the most recent stash and remove it from the stash list.

Git
git stash [1]
Drag options to blanks, or click blank then click option'
Apop
Bshow
Capply
Ddrop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' applies stash but does not remove it.
Using 'show' only displays stash contents.
Using 'drop' deletes stash without applying.
4fill in blank
hard

Fill both blanks to create a stash with a custom message and then list all stashes.

Git
git stash [1] "[2]"
git stash list
Drag options to blanks, or click blank then click option'
Asave
Bpop
Cwork in progress
Dapply
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' instead of 'save' to create stash.
Using 'apply' instead of 'save' to create stash.
Not providing a message for the stash.
5fill in blank
hard

Fill all three blanks to stash only staged changes, then apply the stash without removing it.

Git
git stash [1] --[2]
git stash [3]
Drag options to blanks, or click blank then click option'
Apush
Bstaged
Capply
Dpop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' instead of 'apply' removes stash after applying.
Using '--unstaged' instead of '--staged' stashes wrong changes.
Using 'save' instead of 'push' with options.