Make delicious recipes!

Git stash

git stash helps you save uncommitted work onto a stack and cleans the directory by doing away with the uncommitted work.
Multiple stash commands form a stack of uncommitted work items.

git stash list shows you the stack of these items.

git stash apply stash@{number} can be used to apply the diffs from stash#2 on the current repository.

git stash drop stash@{number} deletes the specified stash.

git stash branch [temp-branch-name] creates a new branch before applying changes in the stash.
Useful when conflicts are expected.

Like us on Facebook to remain in touch
with the latest in technology and tutorials!

Got a thought to share or found a
bug in the code?
We'd love to hear from you:

Email: (Your email is not shared with anybody)

Facebook comments:

Site Owner: Sachin Goyal