Explain how 'git stash' is useful in managing changes.

  • Apply changes from one branch to another.
  • Create a backup of the entire repository.
  • Permanently discard changes in the working directory.
  • Temporarily save changes that are not ready to be committed, allowing for a clean working directory.
'Git stash' is a command that allows developers to temporarily save changes that are not yet ready to be committed. This is useful when switching between branches or addressing urgent issues, providing a way to store changes and revert to a clean working directory.
Add your answer
Loading...

Leave a comment

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