Skip to content

Commit 3729f63

Browse files
committed
Merge pull request progit#392 from progit/fix_gitignore
Fix comments in example .gitignore file
2 parents a6a7303 + 81b4dea commit 3729f63

File tree

25 files changed

+253
-127
lines changed

25 files changed

+253
-127
lines changed

ar/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
171171
Here is another example .gitignore file:
172172

173173
# a comment – this is ignored
174-
*.a # no .a files
175-
!lib.a # but do track lib.a, even though you're ignoring .a files above
176-
/TODO # only ignore the root TODO file, not subdir/TODO
177-
build/ # ignore all files in the build/ directory
178-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
174+
# no .a files
175+
*.a
176+
# but do track lib.a, even though you're ignoring .a files above
177+
!lib.a
178+
# only ignore the root TODO file, not subdir/TODO
179+
/TODO
180+
# ignore all files in the build/ directory
181+
build/
182+
# ignore doc/notes.txt, but not doc/server/arch.txt
183+
doc/*.txt
179184

180185
### Viewing Your Staged and Unstaged Changes ###
181186

az/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
170170
Here is another example `.gitignore` file:
171171

172172
# a comment - this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Viewing Your Staged and Unstaged Changes ###
180185

be/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
170170
Here is another example `.gitignore` file:
171171

172172
# a comment - this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Viewing Your Staged and Unstaged Changes ###
180185

ca/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
170170
Here is another example .gitignore file:
171171

172172
# a comment - this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Viewing Your Staged and Unstaged Changes ###
180185

cs/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Masky souborů jsou jako zjednodušené regulární výrazy, které používá s
170170
Tady je další příklad souboru `.gitignore`:
171171

172172
# komentář – ignoruje se
173-
*.a # žádné soubory s příponou .a
174-
!lib.a # ale sleduj soubor lib.a, přestože máš ignorovat soubory s příponou .a
175-
/TODO # ignoruj soubor TODO pouze v kořenovém adresáři, ne v podadresářích
176-
build/ # ignoruj všechny soubory v adresáři build/
177-
doc/*.txt # ignoruj doc/notes.txt, ale nikoli doc/server/arch.txt
173+
# žádné soubory s příponou .a
174+
*.a
175+
# ale sleduj soubor lib.a, přestože máš ignorovat soubory s příponou .a
176+
!lib.a
177+
# ignoruj soubor TODO pouze v kořenovém adresáři, ne v podadresářích
178+
/TODO
179+
# ignoruj všechny soubory v adresáři build/
180+
build/
181+
# ignoruj doc/notes.txt, ale nikoli doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Zobrazení připravených a nepřipravených změn ###
180185

de/02-git-basics/01-chapter2.markdown

+12-6
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,18 @@ Glob Muster sind vereinfachte reguläre Ausdrücke, die von der Shell verwendet
170170
Hier ist ein weiteres Beispiel für eine `.gitignore` Datei:
171171

172172
# ein Kommentar - dieser wird ignoriert
173-
*.a # ignoriert alle Dateien, die mit .a enden
174-
!lib.a # nicht aber lib.a Dateien (obwohl obige Zeile *.a ignoriert)
175-
/TODO # ignoriert eine TODO Datei nur im Wurzelverzeichnis, nicht aber
176-
# in Unterverzeichnissen
177-
build/ # ignoriert alle Dateien im build/ Verzeichnis
178-
doc/*.txt # ignoriert doc/notes.txt, aber nicht doc/server/arch.txt
173+
# ignoriert alle Dateien, die mit .a enden
174+
*.a
175+
# nicht aber lib.a Dateien (obwohl obige Zeile *.a ignoriert)
176+
!lib.a
177+
# ignoriert eine TODO Datei nur im Wurzelverzeichnis, nicht aber
178+
/TODO
179+
# in Unterverzeichnissen
180+
181+
# ignoriert alle Dateien im build/ Verzeichnis
182+
build/
183+
# ignoriert doc/notes.txt, aber nicht doc/server/arch.txt
184+
doc/*.txt
179185

180186
### Die Änderungen in der Staging Area durchsehen ###
181187

en/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
170170
Here is another example `.gitignore` file:
171171

172172
# a comment - this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Viewing Your Staged and Unstaged Changes ###
180185

es-ni/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,16 @@ Los patrones globales son expresiones regulares simplificadas que pueden ser uti
173173
Aquí hay otro ejemplo de un archivo .gitignore:
174174

175175
# un comentario - es ignorado
176-
*.a # ningún archivo .a
177-
!lib.a # pero si queremos versionar el archivo lib.a, incluse aunque estemos ignorando los archivos .a más arriba
178-
/TODO # solo ignorar el archivo TODO del directorio raíz, no de los subdirectorios
179-
build/ # ignorar todos los archivos dentro del directorio build/
180-
doc/*.txt # ignorar el archivo doc/notes.txt, pero no doc/server/arch.txt
176+
# ningún archivo .a
177+
*.a
178+
# pero si queremos versionar el archivo lib.a, incluse aunque estemos ignorando los archivos .a más arriba
179+
!lib.a
180+
# solo ignorar el archivo TODO del directorio raíz, no de los subdirectorios
181+
/TODO
182+
# ignorar todos los archivos dentro del directorio build/
183+
build/
184+
# ignorar el archivo doc/notes.txt, pero no doc/server/arch.txt
185+
doc/*.txt
181186

182187
### Visualizando Archivos Versionados y No Versionados ###
183188

es/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Los patrones glob son expresiones regulares simplificadas que pueden ser usadas
170170
He aquí otro ejemplo de archivo .gitignore:
171171

172172
# a comment – this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Viendo tus cambios preparados y no preparados ###
180185

fi/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,16 @@ Keräysmallit ovat kuin yksinkertaistettuja 'säännöllisiä ilmaisuja' (regula
172172
Tässä toinen esimerkki .gitignore tiedostosta:
173173

174174
# kommentti – tämä sivuutetaan
175-
*.a # ei .a tiedostoja
176-
!lib.a # mutta jäljitä lib.a, vaikka sivuutatkin .a tiedostot yllä
177-
/TODO # sivuttaa vain juuren TODO tiedosto, ei subdir/TODO hakemistoa
178-
build/ # sivuttaa kaikki tiedostot build/ hakemistosta
179-
doc/*.txt # sivuttaa doc/notes.txt, mutta ei doc/server/arch.txt
175+
# ei .a tiedostoja
176+
*.a
177+
# mutta jäljitä lib.a, vaikka sivuutatkin .a tiedostot yllä
178+
!lib.a
179+
# sivuttaa vain juuren TODO tiedosto, ei subdir/TODO hakemistoa
180+
/TODO
181+
# sivuttaa kaikki tiedostot build/ hakemistosta
182+
build/
183+
# sivuttaa doc/notes.txt, mutta ei doc/server/arch.txt
184+
doc/*.txt
180185

181186
### Lavastettujen ja lavastattomien muutosten tarkastelu ###
182187

fr/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,16 @@ Un astérisque (`*`) correspond à un ou plusieurs caractères ; `[abc]` corres
224224
Voici un autre exemple de fichier `.gitignore` :
225225

226226
# un commentaire, cette ligne est ignorée
227-
*.a # pas de fichier .a
228-
!lib.a # mais suivre lib.a malgré la règle précédente
229-
/TODO # ignorer uniquement le fichier TODO à la racine du projet
230-
build/ # ignorer tous les fichiers dans le répertoire build
231-
doc/*.txt # ignorer doc/notes.txt, mais pas doc/server/arch.txt
227+
# pas de fichier .a
228+
*.a
229+
# mais suivre lib.a malgré la règle précédente
230+
!lib.a
231+
# ignorer uniquement le fichier TODO à la racine du projet
232+
/TODO
233+
# ignorer tous les fichiers dans le répertoire build
234+
build/
235+
# ignorer doc/notes.txt, mais pas doc/server/arch.txt
236+
doc/*.txt
232237

233238
### Inspecter les modifications indexées et non indexées ###
234239

id/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Pola Glob adalah seperti regular expression yang disederhanakan yang biasanya di
170170
Berikut adalah contoh lain dari isi berkas .gitignore:
171171

172172
# sebuah komentar – akan diabaikan
173-
*.a # abaikan berkas .a
174-
!lib.a # tapi pantau lib.a, walaupun Anda abaikan berkas .a di atas
175-
/TODO # hanya abaikan berkas TODO yang berada di rooto, bukan di subdir/TODO
176-
build/ # abaikan semua berkas di dalam direktori build/
177-
doc/*.txt # abaikan doc/notes.txt, tapi bukan doc/server/arch.txt
173+
# abaikan berkas .a
174+
*.a
175+
# tapi pantau lib.a, walaupun Anda abaikan berkas .a di atas
176+
!lib.a
177+
# hanya abaikan berkas TODO yang berada di rooto, bukan di subdir/TODO
178+
/TODO
179+
# abaikan semua berkas di dalam direktori build/
180+
build/
181+
# abaikan doc/notes.txt, tapi bukan doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Melihat Perubahan di Area Stage dan di luar Area Stage ###
180185

it/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ I glob pattern sono semplicemente espressioni regolari usate dalla shell. Un as
170170
Questo è un altro esempio di file .gitignore:
171171

172172
# un commento - questo è ignorato
173-
*.a # no file .a
174-
!lib.a # ma traccia lib.a, mentre vengono ignorati tutti i file .a come sopra
175-
/TODO # ignora solamente il file TODO in root, non del tipo subdir/TODO
176-
build/ # ignora tutti i file nella directory build/
177-
doc/*.txt # ignora doc/note.txt, ma non doc/server/arch.txt
173+
# no file .a
174+
*.a
175+
# ma traccia lib.a, mentre vengono ignorati tutti i file .a come sopra
176+
!lib.a
177+
# ignora solamente il file TODO in root, non del tipo subdir/TODO
178+
/TODO
179+
# ignora tutti i file nella directory build/
180+
build/
181+
# ignora doc/note.txt, ma non doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Visualizza le tue modifiche parcheggiate e non ###
180185

ja/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ glob パターンとは、シェルで用いる簡易正規表現のようなも
170170
では、`.gitignore` ファイルの例をもうひとつ見てみましょう。
171171

172172
# コメント。これは無視されます
173-
*.a # .a ファイルは無視
174-
!lib.a # しかし、lib.a ファイルだけは .a であっても追跡対象とします
175-
/TODO # ルートディレクトリの TODO ファイルだけを無視し、サブディレクトリの TODO は無視しません
176-
build/ # build/ ディレクトリのすべてのファイルを無視します
177-
doc/*.txt # doc/notes.txt は無視しますが、doc/server/arch.txt は無視しません
173+
# .a ファイルは無視
174+
*.a
175+
# しかし、lib.a ファイルだけは .a であっても追跡対象とします
176+
!lib.a
177+
# ルートディレクトリの TODO ファイルだけを無視し、サブディレクトリの TODO は無視しません
178+
/TODO
179+
# build/ ディレクトリのすべてのファイルを無視します
180+
build/
181+
# doc/notes.txt は無視しますが、doc/server/arch.txt は無視しません
182+
doc/*.txt
178183

179184
### ステージされている変更 / されていない変更の閲覧 ###
180185

ko/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Glob 패턴은 정규표현식을 단순하게 만든 것으로 생각하면 되
170170
다음은 .gitignore 파일의 예이다:
171171

172172
# a comment - 이 줄은 무시한다.
173-
*.a # 확장자가 .a인 파일 무시
174-
!lib.a # 윗 줄에서 확장자가 .a인 파일은 무시하게 했지만 lib.a는 무시하지 않는다.
175-
/TODO # 루트 디렉토리에 있는 TODO파일은 무시하고 subdir/TODO처럼 하위디렉토리에 있는 파일은 무시하지 않는다.
176-
build/ # build/ 디렉토리에 있는 모든 파일은 무시한다.
177-
doc/*.txt # `doc/notes.txt`같은 파일은 무시하고 doc/server/arch.txt같은 파일은 무시하지 않는다.
173+
# 확장자가 .a인 파일 무시
174+
*.a
175+
# 윗 줄에서 확장자가 .a인 파일은 무시하게 했지만 lib.a는 무시하지 않는다.
176+
!lib.a
177+
# 루트 디렉토리에 있는 TODO파일은 무시하고 subdir/TODO처럼 하위디렉토리에 있는 파일은 무시하지 않는다.
178+
/TODO
179+
# build/ 디렉토리에 있는 모든 파일은 무시한다.
180+
build/
181+
# `doc/notes.txt`같은 파일은 무시하고 doc/server/arch.txt같은 파일은 무시하지 않는다.
182+
doc/*.txt
178183

179184
### Staged와 Unstaged 상태의 변경 내용을 보기 ###
180185

mk/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
169169
Here is another example .gitignore file:
170170

171171
# a comment – this is ignored
172-
*.a # no .a files
173-
!lib.a # but do track lib.a, even though you're ignoring .a files above
174-
/TODO # only ignore the root TODO file, not subdir/TODO
175-
build/ # ignore all files in the build/ directory
176-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
172+
# no .a files
173+
*.a
174+
# but do track lib.a, even though you're ignoring .a files above
175+
!lib.a
176+
# only ignore the root TODO file, not subdir/TODO
177+
/TODO
178+
# ignore all files in the build/ directory
179+
build/
180+
# ignore doc/notes.txt, but not doc/server/arch.txt
181+
doc/*.txt
177182

178183
### Viewing Your Staged and Unstaged Changes ###
179184

nl/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Expansie (`glob`) patronen zijn vereenvoudigde reguliere expressies die shell om
170170
Hier is nog een voorbeeld van een `.gitignore` bestand:
171171

172172
# a comment – this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Je staged en unstaged wijzigingen zien ###
180185

no-nb/02-git-basics/01-chapter2.markdown

+10-5
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
170170
Here is another example `.gitignore` file:
171171

172172
# a comment - this is ignored
173-
*.a # no .a files
174-
!lib.a # but do track lib.a, even though you're ignoring .a files above
175-
/TODO # only ignore the root TODO file, not subdir/TODO
176-
build/ # ignore all files in the build/ directory
177-
doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
173+
# no .a files
174+
*.a
175+
# but do track lib.a, even though you're ignoring .a files above
176+
!lib.a
177+
# only ignore the root TODO file, not subdir/TODO
178+
/TODO
179+
# ignore all files in the build/ directory
180+
build/
181+
# ignore doc/notes.txt, but not doc/server/arch.txt
182+
doc/*.txt
178183

179184
### Viewing Your Staged and Unstaged Changes ###
180185

0 commit comments

Comments
 (0)