Stash Work, Fix Bug, Resume
Beginner Mode
Start your terminal to use beginner mode.
Scenario
You have a Git repository at /home/interview/repo where you are working on a new feature on the feature-login branch with uncommitted changes in login.js. A fix is needed on the dev branch: app.js contains a JavaScript syntax error that can be identified by running node app.js.
Task
Stash your current changes to clean the working directory, switch to the dev branch, fix the syntax error in app.js, commit the fix using the commit message Fix syntax error in app.js, then return to your feature-login branch, merge the fix from dev, and restore your stashed work.
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →
Kraken