1.

What is git stash?

Answer»

When you are working in your working directory and DONE few changes so few ITEMS in staging, and now if you have to provide any hot fix based on the last COMMIT on the remote repository then to do it the best way is save the CURRENT state of the working directory and the index/staging (something like on a stack), for that we use command 'git stash' or 'git stash save'. After using this command, the current working directory will be having the same match as on the remote last commit means locally no changes exist to stage or commit. Now you can do your stuff on the clean copy of the remote; git stash will not cover git ignored files and the newly created files but not 'staged' yet in current working directory.



Discussion

No Comment Found