Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions assets/img/mermaid/040-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions assets/img/mermaid/041-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions assets/img/mermaid/042-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions assets/img/mermaid/043-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions assets/img/mermaid/044-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions assets/img/mermaid/045-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 17 additions & 25 deletions en/_posts/2022-01-19-040.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
---
layout: post
title: '#040 What is stash?'
image: "https://res.cloudinary.com/jesstemporal/image/upload/v1642964722/gitfichas/en/040/thumbnail_efctyk.jpg"
translations:
- lang: es
url: /es/040
- lang: pt
url: /projects/040
pretitle: What is
title: stash
concept: true
parts:
- part1: a set of changes saved<br>into a stack to be used later
- part2: the command allows saving the changes made<br>and returning to a clean state of the working directory
- part3: stash index in stash@{n}
number: "040"
author: "@jtemporal"
mermaid: true
use_static_image: true
permalink: "/en/040"
translations:
- lang: pt
url: /projects/040
- lang: es
url: /es/040
lang: "en"
pv:
url: "/en/039"
Expand All @@ -17,21 +26,4 @@ nt:
title: "#041 git stash push"
---

<img alt="A stash is a bundle of changes stored to be used later and each stash has an index." src="https://res.cloudinary.com/jesstemporal/image/upload/v1642964723/gitfichas/en/040/full_uq54to.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `stash` | is a bundle of changes stored into a stack to be used later |
| _why it is useful?_ | the command provides a way for saving the changes made and safely go back to a clean state of the working directory |
| `“n”` em `stash@{n}` | stash index |
{: .styled-table}

<!--
<br>

Read more about this command in the following blog post:

<a href="FILL">
<strong>FILL</strong>
</a>
-->
{% include mermaid-graphs.html %}
43 changes: 17 additions & 26 deletions en/_posts/2022-01-20-041.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
---
layout: post
title: '#041 git stash push'
image: "https://res.cloudinary.com/jesstemporal/image/upload/v1642964722/gitfichas/en/041/thumbnail_uu3g28.jpg"
translations:
- lang: pt
url: /projects/041
- lang: es
url: /es/041
pretitle: Saving changes
title: for later
Comment on lines +3 to +4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pretitle: Saving changes
title: for later
pretitle:
title: Stashing
subtitle: changes

command: git stash push
descriptors:
- command: command to manage \nstashes
- part1: create a \nnew stash
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- part1: create a \nnew stash
- part1: command to create\na new stash

info: "push is optional"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
info: "push is optional"
info: "the push command can be omitted"

number: "041"
author: "@jtemporal"
mermaid: true
use_static_image: true
permalink: "/en/041"
translations:
- lang: pt
url: /projects/041
- lang: es
url: /es/041
lang: "en"
pv:
url: "/en/040"
Expand All @@ -16,23 +25,5 @@ nt:
url: "/en/042"
title: "#042 git stash -m “changes”"
---
##### Saving changes for later

<img alt="To create a stash, use the command git stash push." src="https://res.cloudinary.com/jesstemporal/image/upload/v1642964723/gitfichas/en/041/full_iswlps.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `stash` | command to manage stashes |
| `push` | command to creta a new stash |
| _extra information_ | the push command can be omitted |
{: .styled-table}

<!--
<br>

Read more about this command in the following blog post:

<a href="FILL">
<strong>FILL</strong>
</a>
-->
{% include mermaid-graphs.html %}
43 changes: 17 additions & 26 deletions en/_posts/2022-01-21-042.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
---
layout: post
title: '#042 git stash -m “changes”'
image: "https://res.cloudinary.com/jesstemporal/image/upload/v1693392223/gitfichas/en/042/thumbnail_yzjbbg.jpg"
translations:
- lang: pt
url: /projects/042
- lang: es
url: /es/042
pretitle: Naming a
title: stash
command: git stash -m 'changes'
descriptors:
- command: command to manage \nstashes
- part1: flag to write \na stash message
- part2: message describing \nthe changes
author: "@jtemporal"
number: "042"
mermaid: true
use_static_image: true
permalink: "/en/042"
translations:
- lang: pt
url: /projects/042
- lang: es
url: /es/042
lang: "en"
pv:
url: "/en/041"
Expand All @@ -16,23 +25,5 @@ nt:
url: "/en/043"
title: "#043 git stash list"
---
##### Naming a stash

<img alt="To create a 'named' stash, use the command git stash -m followed by the message describing the stash." src="https://res.cloudinary.com/jesstemporal/image/upload/v1693392223/gitfichas/en/042/full_nafacu.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `stash` | command to manage stashes |
| `-m` | flag write a stash message |
| `“changes”` | message describing the changes |
{: .styled-table}

<!--
<br>

Read more about this command in the following blog post:

<a href="FILL">
<strong>FILL</strong>
</a>
-->
{% include mermaid-graphs.html %}
44 changes: 18 additions & 26 deletions en/_posts/2022-01-22-043.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
---
layout: post
title: '#043 git stash list'
image: "https://res.cloudinary.com/jesstemporal/image/upload/v1642964722/gitfichas/en/043/thumbnail_rclvmu.jpg"
translations:
- lang: pt
url: /projects/043
- lang: es
url: /es/043
pretitle: How to
title: list stashes
Comment on lines +3 to +4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pretitle: How to
title: list stashes
pretitle: List existing
title: stashes

command: git stash list
descriptors:
- command: command to manage \nstashes
- part1: show the list \nof existing stashes
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- part1: show the list \nof existing stashes
- part1: command to show\nthe list of stashes

info: ""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
info: ""

author: "@jtemporal"
number: "043"
mermaid: true
use_static_image: true
permalink: "/en/043"
translations:
- lang: pt
url: /projects/043
- lang: es
url: /es/043
lang: "en"
pv:
url: "/en/042"
title: "#042 git stash -m changes"
title: "#042 git stash -m 'changes'"
nt:
url: "/en/044"
title: "#044 git stash pop"
---
##### How to list existing stash entries

<img alt="To list stash entreis, use the command git stash list." src="https://res.cloudinary.com/jesstemporal/image/upload/v1642964722/gitfichas/en/043/full_qdsc7t.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `stash` | command to manage stashes |
| `list` | command to show the list of stashes |
{: .styled-table}

<!--
<br>
Read more about this command in the following blog post:

<a href="FILL">
<strong>FILL</strong>
</a>
-->
{% include mermaid-graphs.html %}
42 changes: 17 additions & 25 deletions en/_posts/2022-01-23-044.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
---
layout: post
title: '#044 git stash pop'
image: "https://res.cloudinary.com/jesstemporal/image/upload/v1642964723/gitfichas/en/044/thumbnail_qscsac.jpg"
pretitle:
title: Removing
subtitle: a stash from the pile and applying it
Comment on lines +3 to +5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pretitle:
title: Removing
subtitle: a stash from the pile and applying it
pretitle: Removing a
title: stash
subtitle: from the pile and applying it

command: git stash pop
descriptors:
- command: command to manage \nstashes
- part1: removes from the pile \nand applies changes
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- part1: removes from the pile \nand applies changes
- part1: removes a stash from the\npile and applies the changes

info: without passing an index, the most recent stash is used
author: "@jtemporal"
number: "044"
mermaid: true
use_static_image: true
translations:
- lang: pt
url: /projects/044
- lang: es
url: /es/044
- lang: pt
url: /projects/044
- lang: es
url: /es/044
permalink: "/en/044"
lang: "en"
pv:
Expand All @@ -16,23 +26,5 @@ nt:
url: "/en/045"
title: "#045 git stash drop stash@{2}"
---
##### Removing a stash from the pile and applying it

<img alt="To remove a stash entry from the pile and apply the changes it contains at the same time, use the command git stash pop" src="https://res.cloudinary.com/jesstemporal/image/upload/v1642964724/gitfichas/en/044/full_hvzjs2.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `stash` | command to manage stashes |
| `pop` | removes a stash from the pile and apply the changes |
| _extra information_ | without passing an index the most recent stash is used |
{: .styled-table}

<!--
<br>

Read more about this command in the following blog post:

<a href="FILL">
<strong>FILL</strong>
</a>
-->
{% include mermaid-graphs.html %}
50 changes: 21 additions & 29 deletions en/_posts/2022-02-05-045.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,31 @@
---
layout: post
title: '#045 git stash drop stash@{2}'
image: "https://res.cloudinary.com/jesstemporal/image/upload/v1644148962/gitfichas/en/045/thumbnail_nchzol.jpg"
translations:
- lang: pt
url: /projects/045
- lang: es
url: /es/045
pretitle:
title: Deleting
subtitle: a specific stash
Comment on lines +3 to +5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pretitle:
title: Deleting
subtitle: a specific stash
pretitle: Throwing out a
title: stash
subtitle:

command: git stash drop stash@{2}
descriptors:
- command: command to manage \nstashes
- part1: delete a stash \nfrom the pile
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- part1: delete a stash \nfrom the pile
- part1: removes a stash \nfrom the pile

- part2: index of the stash \nto be deleted
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- part2: index of the stash \nto be deleted
- part2: second to last\nstash

info: without passing an index, the most recent stash is deleted
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
info: without passing an index, the most recent stash is deleted
info: without passing an index, the most recent stash is used

author: "@jtemporal"
number: "045"
mermaid: true
use_static_image: true
permalink: "/en/045"
translations:
- lang: pt
url: /projects/045
- lang: es
url: /es/045
lang: "en"
previous:
pv:
url: "/en/044"
title: "#044 git stash pop"
next:
nt:
url: "/en/046"
title: "#046 git stash apply stash@{2}"
---
##### Throwing out a stash

<img alt="To remove a stash entry from the pile, use the command git stash drop followed by the stash name" src="https://res.cloudinary.com/jesstemporal/image/upload/v1644148964/gitfichas/en/045/full_zugn9f.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `stash` | command to manage stashes |
| `drop` | removes a stash from the pile |
| `stash@{1}` | second to last stash |
| _extra information_ | without passing an index the most recent stash is used |
{: .styled-table}

<!--
<br>
Read more about this command in the following blog post:

<a href="FILL">
<strong>FILL</strong>
</a>
-->
{% include mermaid-graphs.html %}