A developer needs to temporarily switch context to another task without committing their current, incomplete work. What Git feature is most appropriate for this scenario?

  • Git Reset
  • Git Stash
  • Git Checkout
  • Git Revert
The suitable option is Git Stash. It allows the developer to save changes in a stack, switch to another task, and then come back to the original changes without committing them.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *