Skip to content

Commit

Permalink
Added a section on stashing
Browse files Browse the repository at this point in the history
  • Loading branch information
kitswas committed Apr 27, 2023
1 parent 5c223b6 commit 2d09c37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chapters/chapter4.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@ This concept is tied to forking. Hence, it is again not a git feature.

![Collaboration](images/collaboration.svg)

### Stashing

The Stash is a feature that allows you to save your changes temporarily without committing them. You may think of it as a `quicksave` feature. It is similar to throwing your dirty clothes in the laundry basket/bag.

It is useful when you want to switch to a different branch or have to pull changes from a remote repository but are not ready to commit your changes.

As the details of stashing are beyond the scope of this guide, I'll leave you with a link to the [official documentation](https://git-scm.com/docs/git-stash).

[Previous](./chapter3.md){: .btn} [About this guide](../ABOUT.md){: .btn}

0 comments on commit 2d09c37

Please sign in to comment.