What are GIT stash and GIT stash drop?

devquora
devquora

Posted On: Feb 22, 2018

 

GIT stash:

It takes the current state of working directory and index and pushes into the stack for later and returns to you the clean working directory.GIT stash will help you in the instances where you are working on a project and you want to switch the branches to work on something else.

GIT stash drop:

When you are done and want to eliminate the stashed item from the list, then running the GIT “stash drop” command will remove the last added stash item by default and can also remove the specific item if any argument is included or mentioned.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Git Interview Questions

    What is GIT and why do we use it?

    GIT is a Distributed Version Control System (DVCS) and Source Code Management System (SCMS) which can track changes to a..

    Git Interview Questions

    Name some GIT commands and also explain their functions?

    GIT diff – It shows the changes between commits, commits and working tree.GIT status – It shows the difference b..

    Git Interview Questions

    What is a GIT commit and what does the commit object contain?

    A GIT commit is a command that is executed in the course of a project to records progress.The commit object contains th..