Explain git stash, pop?
Answer / Bhajan Veer Singh
Git Stash allows you to save your local uncommitted changes in a stack. This enables you to switch branches or make other changes without losing your work temporarily. To stash changes, use `git stash`. To retrieve the last saved changes, use `git stash apply`.n- If you have multiple stashed changes and want to apply them sequentially, use `git stash pop` to both stash-pop and remove the topmost stash.n- Use `git stash list` to view all stashed changes.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of ‘git log’?
What is the difference between GIT and SVN?
Why git and not svn?
what is git fork? What is difference between fork and branch? How to create tag?
What are the different ways you can refer to a commit?
How can you use git bisect to determine the source of a (regression) bug?
How do you find a list of files that have changed in a particular commit?
How many heads can be created in a repository?
What is a “conflict” in git and how is it resolved?
Mention the various git repository hosting functions.
What work is restored when the deleted branch is recovered?
Name a few git commands?