0
0
Gitdevops~10 mins

git stash to save changes - Interactive Code Practice

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.

Git
git [1]
Drag options to blanks, or click blank then click option'
Acommit
Bstash
Cpush
Dpull
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'commit' saves changes permanently, not temporarily.
Using 'push' sends changes to a remote repository.
Using 'pull' fetches changes from a remote repository.
2fill in blank
medium

Complete the command to list all saved stashes.

Git
git [1] list
Drag options to blanks, or click blank then click option'
Astash
Blog
Cstatus
Dbranch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git log list' is invalid syntax.
Using 'git status list' does not list stashes.
Using 'git branch list' lists branches, not stashes.
3fill in blank
hard

Fix the error in the command to apply the latest stash.

Git
git stash [1]
Drag options to blanks, or click blank then click option'
Asave
Bpop
Capply
Ddrop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'save' again saves a new stash instead of applying.
Using 'pop' removes the stash after applying, which might not be desired.
Using 'drop' deletes the stash without applying.
4fill in blank
hard

Fill both blanks to save changes with a 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
CWIP on feature
Dapply
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pop' or 'apply' instead of 'save' to save changes.
Not providing a message or using an invalid message format.
5fill in blank
hard

Fill all three blanks to create a stash, list stashes, and then apply the latest stash.

Git
git stash [1] && git stash [2] && git stash [3]
Drag options to blanks, or click blank then click option'
Asave
Blist
Capply
Ddrop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'drop' instead of 'apply' removes the stash without applying.
Mixing up the order of commands.
Using 'pop' instead of 'apply' if you want to keep the stash.