Introducing - git stash

Remember the time when you’ve been doing some changes on git repository, and the telephone rang just in the middle of coding?

Clients can be very convincing, when it comes to applying changes just in time.

In this situation git stash command can be very helpfull.

Run:
git stash
to move all your changes to special local - let’s call it - clipboard and start your other work on clean repository.
After you finish with it, you can run:
git stash pop

to restore previous changes and get back what you have been doing before you have heard the bloody phone.

Moreover you can have more clipboard. By calling git stash acts like a stack so you can push and pop the changes.

This command has changed my work with git tremendously/

Recent comments