Posts

Showing posts with the label git stash save

Git Stashing

Image
Hello DevOps/DevSecOps team Guys!! As you know we are learners always shine with 'Learning by doing'. In this post exploring the git stashing it's nice to know how you can keep code in safer for reuse after sometime or after some other code commits getting back.   What is Git Stash means? Stashing takes the dirty state of your working directory — that is, your modified tracked files and staged changes — and saves it on a stack of unfinished changes that you can reapply at any time (even on a different branch). To demonstrate stashing, you should go into your project and start working on a couple of file(s) and possibly stage one of the changes. Power of git stash Why do we need git stashing? We have already git commit command right then why stashing? You can commit your code and switch to another branch. Your actual work is in a "messy state" and there are still more new feature changes need to be done on the projects coming up and don't want ...