0
0
Gitdevops~10 mins

Stashing specific files in Git - Interactive Code Practice

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

Complete the command to stash only the file named app.py.

Git
git stash push [1]
Drag options to blanks, or click blank then click option'
A--include-untracked
B-- app.py
C--all
D--patch
Attempts:
3 left
💡 Hint
Common Mistakes
Using options like --all or --include-untracked which stash more than just the file.
Not using -- before the filename.
2fill in blank
medium

Complete the command to stash changes only in index.html and style.css.

Git
git stash push [1]
Drag options to blanks, or click blank then click option'
A--patch
B--all
C-- index.html style.css
D--include-untracked
Attempts:
3 left
💡 Hint
Common Mistakes
Using options like --all which stash everything.
Not listing both files after --.
3fill in blank
hard

Fix the error in the command to stash only README.md.

Git
git stash push [1] README.md
Drag options to blanks, or click blank then click option'
A--
B--all
C--patch
D--include-untracked
Attempts:
3 left
💡 Hint
Common Mistakes
Using options like --all or --patch which stash more than the file.
Omitting the -- before the file name.
4fill in blank
hard

Fill both blanks to stash only main.js.

Git
git stash push [1] [2]
Drag options to blanks, or click blank then click option'
A--
B--all
Cmain.js
Dutils.js
Attempts:
3 left
💡 Hint
Common Mistakes
Using --all which stashes everything.
Not using -- before file names.
5fill in blank
hard

Fill all three blanks to stash only server.js and config.json.

Git
git stash push [1] [2] [3]
Drag options to blanks, or click blank then click option'
A--
Bserver.js
Cconfig.json
DREADME.md
Attempts:
3 left
💡 Hint
Common Mistakes
Not using -- before file names.
Including options like --all which stash everything.