Skip to content
87 changes: 87 additions & 0 deletions assets/img/mermaid/031-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/img/mermaid/032-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions assets/img/mermaid/033-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 15 additions & 13 deletions en/_posts/2022-01-05-031.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
layout: post
title: '#031 git commit --amend'
image: "https://res.cloudinary.com/jesstemporal/image/upload/f_auto/v1642878599/gitfichas/en/031/thumbnail_zujdhx.jpg"
pretitle: Adjusting the last
title: commit
subtitle:
command: git commit --amend
descriptors:
- command: command to<br>handle commits
- part1: flag to<br>fix last commit
info: by default, amend will adjust the last commit<br>creating a new commit
author: "@jtemporal"
number: "031"
mermaid: true
use_static_image: true
permalink: "/en/031"
translations:
- lang: pt
Expand All @@ -11,18 +21,10 @@ translations:
lang: "en"
pv:
url: "/en/030"
title: "#030 O que é um conflito?"
title: "#030 What is a conflict?"
nt:
url: "/en/032"
title: "#032 git restore nome"
title: "#032 git restore name"
---
##### Adjusting the last commit

<img alt="To adjust the last commit use the command git commit --amend" src="https://res.cloudinary.com/jesstemporal/image/upload/v1642878600/gitfichas/en/031/full_iobvdi.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `switch` | Command to handle commits |
| `--amend` | Flag to fix the last commit |
| _extra information_ | By default amend will adjust the last commit creating a new commit |
{: .styled-table}
{% include mermaid-graphs.html %}
26 changes: 14 additions & 12 deletions en/_posts/2022-01-06-032.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
layout: post
title: '#032 git restore name'
image: "https://res.cloudinary.com/jesstemporal/image/upload/f_auto/v1642878600/gitfichas/en/032/thumbnail_j2drhh.jpg"
pretitle: Discarding
title: changes
subtitle:
command: git restore name
descriptors:
- command: command to restore<br>the previous state
- part1: file name
info: the changes that are<br> discarded are not on staging
author: "@jtemporal"
number: "032"
mermaid: true
use_static_image: true
permalink: "/en/032"
translations:
- lang: pt
Expand All @@ -14,15 +24,7 @@ pv:
title: "#031 git commit --amend"
nt:
url: "/en/033"
title: "#033 git clone url nome"
title: "#033 git clone url name"
---
##### Discarding changes

<img alt="To discard changes to a file that is not on staging use the command git restore name" src="https://res.cloudinary.com/jesstemporal/image/upload/v1642878600/gitfichas/en/032/full_miqlxk.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `restore` | Command to restore the previous state |
| `name` | File name |
| _extra information_ | The discarded changes are not added to staging |
{: .styled-table}
{% include mermaid-graphs.html %}
28 changes: 15 additions & 13 deletions en/_posts/2022-01-07-033.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
layout: post
title: '#033 git clone url name'
image: "https://res.cloudinary.com/jesstemporal/image/upload/f_auto/v1642878600/gitfichas/en/033/thumbnail_wmonzr.jpg"
pretitle: Naming the
title: clone
subtitle: destination folder
command: git clone url name
descriptors:
- command: command to download<br>the repository
- part1: repository<br>path
- part2: name of the<br>target folder
author: "@jtemporal"
number: "033"
mermaid: true
use_static_image: true
permalink: "/en/033"
translations:
- lang: pt
Expand All @@ -11,18 +21,10 @@ translations:
lang: "en"
pv:
url: "/en/032"
title: "#032 git restore nome"
title: "#032 git restore name"
nt:
url: "/en/034"
title: "#034 git switch nome"
title: "#034 git switch name"
---
##### Naming the clone folder

<img alt="To give a specific name to the repository download folder use the command git clone url name" src="https://res.cloudinary.com/jesstemporal/image/upload/v1642878600/gitfichas/en/033/full_yfvipy.jpg"><br><br>

| Command | Description |
|---------|-------------|
| `clone` | Command to download the repository |
| `url` | Path to the repository |
| `name` | Name of the target folder |
{: .styled-table}
{% include mermaid-graphs.html %}