Skip to content

Commit c164c8d

Browse files
committed
Refresh Git output listings
Command used to create these: cd lessons/git bash create_examples.sh basics_branching.sh outfile
1 parent 1676065 commit c164c8d

3 files changed

Lines changed: 31 additions & 36 deletions

File tree

lessons/git/basics/index.md

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pomocí příkazu `git init`:
5656

5757
```ansi
5858
␛[36m$␛[0m git init
59-
Initialized empty Git repository in ./.git/
59+
Initialized empty Git repository in .../.git/
6060
```
6161

6262
Na první pohled to vypadá, že se nic nestalo.
@@ -74,7 +74,7 @@ vypisuje informace o stavu repozitáře:
7474
␛[36m$␛[0m git status
7575
On branch master
7676
77-
Initial commit
77+
No commits yet
7878
7979
nothing to commit (create/copy files and use "git add" to track)
8080
```
@@ -101,12 +101,11 @@ Pak zkus znovu `git status`: Git oznámí,
101101
␛[36m$␛[0m git status
102102
On branch master
103103
104-
Initial commit
104+
No commits yet
105105
106106
Untracked files:
107107
(use "git add <file>..." to include in what will be committed)
108-
109-
␛[31mbasnicka.txt␛[m
108+
␛[31mbasnicka.txt␛[m
110109
111110
nothing added to commit but untracked files present (use "git add" to track)
112111
```
@@ -125,12 +124,11 @@ a znovu zkontroluj stav repozitáře:
125124
␛[36m$␛[0m git status
126125
On branch master
127126
128-
Initial commit
127+
No commits yet
129128
130129
Changes to be committed:
131130
(use "git rm --cached <file>..." to unstage)
132-
133-
␛[32mnew file: basnicka.txt␛[m
131+
␛[32mnew file: basnicka.txt␛[m
134132
135133
```
136134

@@ -141,7 +139,7 @@ Pojď tedy vytvořit revizi:
141139

142140
```ansi
143141
␛[36m$␛[0m git commit
144-
[master (root-commit) 1a009f4] První revize
142+
[master (root-commit) eb0fcd9] První revize
145143
1 file changed, 6 insertions(+)
146144
create mode 100644 basnicka.txt
147145
```
@@ -196,9 +194,9 @@ To ti poví příkaz `git show`:
196194

197195
```ansi
198196
␛[36m$␛[0m git show
199-
␛[33mcommit 1a009f4267d5a6ab7ece87cb7514f5b803692e39␛[m
197+
␛[33mcommit eb0fcd9317cbba3d9406ffe2918dfaad667f100f␛[m
200198
Author: Adéla Novotná <adela.novotna@example.cz>
201-
Date: Mon Mar 20 14:51:34 2017 +0100
199+
Date: Mon May 18 16:18:40 2020 +0200
202200
203201
První revize
204202
@@ -252,9 +250,8 @@ Pak se opět zeptej Gitu na stav repozitáře.
252250
On branch master
253251
Changes not staged for commit:
254252
(use "git add <file>..." to update what will be committed)
255-
(use "git checkout -- <file>..." to discard changes in working directory)
256-
257-
␛[31mmodified: basnicka.txt␛[m
253+
(use "git restore <file>..." to discard changes in working directory)
254+
␛[31mmodified: basnicka.txt␛[m
258255
259256
no changes added to commit (use "git add" and/or "git commit -a")
260257
```
@@ -318,12 +315,10 @@ A pro úplnost se znovu koukni, co říká
318315
revize.
319316

320317
```ansi
321-
␛[36m$␛[0m git status
322318
On branch master
323319
Changes to be committed:
324-
(use "git reset HEAD <file>..." to unstage)
325-
326-
␛[32mmodified: basnicka.txt␛[m
320+
(use "git restore --staged <file>..." to unstage)
321+
␛[32mmodified: basnicka.txt␛[m
327322
328323
```
329324

@@ -346,8 +341,8 @@ Můj popisek bude znít takhle:
346341
Rozdělení dlouhých řádků
347342
348343
Verše básně se většinou píšou na jednotlivé řádky. Myslím, že
349-
takhle se to líp čte. (Ale co si budeme povídat, hlavní
350-
důvod je ukázat, co dělá git diff.)
344+
takhle se to líp čte. (Ale, co si budeme povídat, hlavní
345+
důvod je ukázat co dělá git diff.)
351346
```
352347

353348
> [note]
@@ -362,15 +357,15 @@ Pak ji zkontroluj:
362357

363358
```ansi
364359
␛[36m$␛[0m git show
365-
␛[33mcommit 81cbabb3bd3cd2f3896dd41b20012c44dbd69031␛[m
360+
␛[33mcommit 1fcd654a331f290616c948d9841fd8d2a34aa6b4␛[m
366361
Author: Adéla Novotná <adela.novotna@example.cz>
367-
Date: Mon Mar 20 14:51:34 2017 +0100
362+
Date: Mon May 18 16:18:40 2020 +0200
368363
369364
Rozdělení dlouhých řádků
370365
371366
Verše básně se většinou píšou na jednotlivé řádky. Myslím, že
372-
takhle se to líp čte. (Ale co si budeme povídat, hlavní
373-
důvod je ukázat, co dělá git diff.)
367+
takhle se to líp čte. (Ale, co si budeme povídat, hlavní
368+
důvod je ukázat co dělá git diff.)
374369
375370
␛[1mdiff --git a/basnicka.txt b/basnicka.txt␛[m
376371
␛[1mindex 558d133..24e2384 100644␛[m
@@ -409,19 +404,19 @@ První z nich je <code>git log</code>.
409404

410405
```ansi
411406
␛[36m$␛[0m git log
412-
␛[33mcommit 81cbabb3bd3cd2f3896dd41b20012c44dbd69031␛[m
407+
␛[33mcommit 1fcd654a331f290616c948d9841fd8d2a34aa6b4␛[m
413408
Author: Adéla Novotná <adela.novotna@example.cz>
414-
Date: Mon Mar 20 14:51:34 2017 +0100
409+
Date: Mon May 18 16:18:40 2020 +0200
415410
416411
Rozdělení dlouhých řádků
417412
418413
Verše básně se většinou píšou na jednotlivé řádky. Myslím, že
419-
takhle se to líp čte. (Ale co si budeme povídat, hlavní
420-
důvod je ukázat, co dělá git diff.)
414+
takhle se to líp čte. (Ale, co si budeme povídat, hlavní
415+
důvod je ukázat co dělá git diff.)
421416
422-
␛[33mcommit 1a009f4267d5a6ab7ece87cb7514f5b803692e39␛[m
417+
␛[33mcommit eb0fcd9317cbba3d9406ffe2918dfaad667f100f␛[m
423418
Author: Adéla Novotná <adela.novotna@example.cz>
424-
Date: Mon Mar 20 14:51:34 2017 +0100
419+
Date: Mon May 18 16:18:40 2020 +0200
425420
426421
První revize
427422
```

lessons/git/branching/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ Příkazu musíš dát jméno větve, kterou chceš sloučit.
136136
␛[36m$␛[0m git checkout master
137137
Switched to branch 'master'
138138
␛[36m$␛[0m git merge doplneni-jmena
139-
Updating e929fb0..c982a81
139+
Updating 1fcd654..5c9bf93
140140
Fast-forward
141-
basnicka.txt | 6 ␛[32m+++++␛[m␛[31m-␛[m
142-
1 file changed, 5 insertions(+), 1 deletion(-)
141+
basnicka.txt | 3 ␛[32m+++␛[m
142+
1 file changed, 3 insertions(+)
143143
```
144144

145145
Sloučeno! Ono „`Fast-forward`” znamená, že
@@ -182,9 +182,9 @@ pracovat dál.
182182

183183
```ansi
184184
␛[36m$␛[0m git branch -d doplneni-autora
185-
Deleted branch doplneni-autora (was 0e213cd).
185+
Deleted branch doplneni-autora (was f1cd9be).
186186
␛[36m$␛[0m git branch -d doplneni-jmena
187-
Deleted branch doplneni-jmena (was c982a81).
187+
Deleted branch doplneni-jmena (was 5c9bf93).
188188
␛[36m$␛[0m git branch
189189
* ␛[32mmaster␛[m
190190
```

lessons/git/create_examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export second_msg='
1313
Rozdělení dlouhých řádků
1414
1515
Verše básně se většinou píšou na jednotlivé řádky. Myslím, že
16-
takhle se to líp čte. (Ale, co si budeme povídat, hlavní
16+
takhle se to líp čte. (Ale, co si budeme povídat, hlavní
1717
důvod je ukázat co dělá git diff.)
1818
'
1919

0 commit comments

Comments
 (0)