Skip to content

Commit 6701cb1

Browse files
committed
git/ignoring: Refresh Git output
The output is updated with what "script.sh" outputs with a recent version of Git. Modst importantly, it now says "No commits yet" rather than "Initial commit".
1 parent b9512e9 commit 6701cb1

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed

lessons/git/ignoring/index.md

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,14 @@ Jak se na to dívá Git?
8686
␛[36m$␛[0m git status
8787
On branch master
8888
89-
Initial commit
89+
No commits yet
9090
9191
Untracked files:
9292
(use "git add <file>..." to include in what will be committed)
93-
94-
␛[31mAutofile.tmp␛[m
95-
␛[31mobrazek.ps␛[m
96-
␛[31mobrazek.py␛[m
97-
␛[31mpoznamky.txt␛[m
93+
␛[31mAutofile.tmp␛[m
94+
␛[31mobrazek.ps␛[m
95+
␛[31mobrazek.py␛[m
96+
␛[31mpoznamky.txt␛[m
9897
9998
nothing added to commit but untracked files present (use "git add" to track)
10099
```
@@ -129,15 +128,14 @@ Pak se podívej na `git status`. Obrázek už by ve výpisu neměl být!
129128
␛[36m$␛[0m git status
130129
On branch master
131130
132-
Initial commit
131+
No commits yet
133132
134133
Untracked files:
135134
(use "git add <file>..." to include in what will be committed)
136-
137-
␛[31m.gitignore␛[m
138-
␛[31mAutofile.tmp␛[m
139-
␛[31mobrazek.py␛[m
140-
␛[31mpoznamky.txt␛[m
135+
␛[31m.gitignore␛[m
136+
␛[31mAutofile.tmp␛[m
137+
␛[31mobrazek.py␛[m
138+
␛[31mpoznamky.txt␛[m
141139
142140
nothing added to commit but untracked files present (use "git add" to track)
143141
```
@@ -149,19 +147,17 @@ Nový soubor `.gitignore` přidej do repozitáře společně se samotným progra
149147
␛[36m$␛[0m git status
150148
On branch master
151149
152-
Initial commit
150+
No commits yet
153151
154152
Changes to be committed:
155153
(use "git rm --cached <file>..." to unstage)
156-
157-
␛[32mnew file: .gitignore␛[m
158-
␛[32mnew file: obrazek.py␛[m
154+
␛[32mnew file: .gitignore␛[m
155+
␛[32mnew file: obrazek.py␛[m
159156
160157
Untracked files:
161158
(use "git add <file>..." to include in what will be committed)
162-
163-
␛[31mAutofile.tmp␛[m
164-
␛[31mpoznamky.txt␛[m
159+
␛[31mAutofile.tmp␛[m
160+
␛[31mpoznamky.txt␛[m
165161
```
166162

167163
Když uděláš `git commit` a repozitář nasdílíš s ostatními, všichni dostanou
@@ -196,18 +192,16 @@ A po uložení budou poznámky ignorovány!
196192
␛[36m$␛[0m git status
197193
On branch master
198194
199-
Initial commit
195+
No commits yet
200196
201197
Changes to be committed:
202198
(use "git rm --cached <file>..." to unstage)
203-
204-
␛[32mnew file: .gitignore␛[m
205-
␛[32mnew file: obrazek.py␛[m
199+
␛[32mnew file: .gitignore␛[m
200+
␛[32mnew file: obrazek.py␛[m
206201
207202
Untracked files:
208203
(use "git add <file>..." to include in what will be committed)
209-
210-
␛[31mAutofile.tmp␛[m
204+
␛[31mAutofile.tmp␛[m
211205
```
212206

213207
## Další haraburdí
@@ -250,13 +244,12 @@ A měl by být ignorován:
250244
␛[36m$␛[0m git status
251245
On branch master
252246
253-
Initial commit
247+
No commits yet
254248
255249
Changes to be committed:
256250
(use "git rm --cached <file>..." to unstage)
257-
258-
␛[32mnew file: .gitignore␛[m
259-
␛[32mnew file: obrazek.py␛[m
251+
␛[32mnew file: .gitignore␛[m
252+
␛[32mnew file: obrazek.py␛[m
260253
```
261254

262255

0 commit comments

Comments
 (0)