Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix comments in example .gitignore file

The gitignore man page states that the lines starting with '#' are
ignored, but the sharp characters inside a line do not start a comment.
They are part of the regex. The comments must be seperated on their own line.
  • Loading branch information...
commit 81b4deaac9620445d5664dd4bc49d096d92f3527 1 parent 88d28ac
@jnavila jnavila authored
Showing with 253 additions and 127 deletions.
  1. +10 −5 ar/02-git-basics/01-chapter2.markdown
  2. +10 −5 az/02-git-basics/01-chapter2.markdown
  3. +10 −5 be/02-git-basics/01-chapter2.markdown
  4. +10 −5 ca/02-git-basics/01-chapter2.markdown
  5. +10 −5 cs/02-git-basics/01-chapter2.markdown
  6. +12 −6 de/02-git-basics/01-chapter2.markdown
  7. +10 −5 en/02-git-basics/01-chapter2.markdown
  8. +10 −5 es-ni/02-git-basics/01-chapter2.markdown
  9. +10 −5 es/02-git-basics/01-chapter2.markdown
  10. +10 −5 fi/02-git-basics/01-chapter2.markdown
  11. +10 −5 fr/02-git-basics/01-chapter2.markdown
  12. +10 −5 id/02-git-basics/01-chapter2.markdown
  13. +10 −5 it/02-git-basics/01-chapter2.markdown
  14. +10 −5 ja/02-git-basics/01-chapter2.markdown
  15. +10 −5 ko/02-git-basics/01-chapter2.markdown
  16. +10 −5 mk/02-git-basics/01-chapter2.markdown
  17. +10 −5 nl/02-git-basics/01-chapter2.markdown
  18. +10 −5 no-nb/02-git-basics/01-chapter2.markdown
  19. +10 −5 pl/02-git-basics/02-chapter2.markdown
  20. +11 −6 pt-br/02-git-basics/01-chapter2.markdown
  21. +10 −5 ru/02-git-basics/01-chapter2.markdown
  22. +10 −5 th/02-git-basics/01-chapter2.markdown
  23. +10 −5 tr/02-git-basics/01-chapter2.markdown
  24. +10 −5 zh-tw/02-git-basics/01-chapter2.markdown
  25. +10 −5 zh/02-git-basics/01-chapter2.markdown
View
15 ar/02-git-basics/01-chapter2.markdown
@@ -171,11 +171,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example .gitignore file:
# a comment – this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 az/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example `.gitignore` file:
# a comment - this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 be/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example `.gitignore` file:
# a comment - this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 ca/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example .gitignore file:
# a comment - this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 cs/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Masky souborů jsou jako zjednodušené regulární výrazy, které používá s
Tady je další příklad souboru `.gitignore`:
# komentář – ignoruje se
- *.a # žádné soubory s příponou .a
- !lib.a # ale sleduj soubor lib.a, přestože máš ignorovat soubory s příponou .a
- /TODO # ignoruj soubor TODO pouze v kořenovém adresáři, ne v podadresářích
- build/ # ignoruj všechny soubory v adresáři build/
- doc/*.txt # ignoruj doc/notes.txt, ale nikoli doc/server/arch.txt
+ # žádné soubory s příponou .a
+ *.a
+ # ale sleduj soubor lib.a, přestože máš ignorovat soubory s příponou .a
+ !lib.a
+ # ignoruj soubor TODO pouze v kořenovém adresáři, ne v podadresářích
+ /TODO
+ # ignoruj všechny soubory v adresáři build/
+ build/
+ # ignoruj doc/notes.txt, ale nikoli doc/server/arch.txt
+ doc/*.txt
### Zobrazení připravených a nepřipravených změn ###
View
18 de/02-git-basics/01-chapter2.markdown
@@ -170,12 +170,18 @@ Glob Muster sind vereinfachte reguläre Ausdrücke, die von der Shell verwendet
Hier ist ein weiteres Beispiel für eine `.gitignore` Datei:
# ein Kommentar - dieser wird ignoriert
- *.a # ignoriert alle Dateien, die mit .a enden
- !lib.a # nicht aber lib.a Dateien (obwohl obige Zeile *.a ignoriert)
- /TODO # ignoriert eine TODO Datei nur im Wurzelverzeichnis, nicht aber
- # in Unterverzeichnissen
- build/ # ignoriert alle Dateien im build/ Verzeichnis
- doc/*.txt # ignoriert doc/notes.txt, aber nicht doc/server/arch.txt
+ # ignoriert alle Dateien, die mit .a enden
+ *.a
+ # nicht aber lib.a Dateien (obwohl obige Zeile *.a ignoriert)
+ !lib.a
+ # ignoriert eine TODO Datei nur im Wurzelverzeichnis, nicht aber
+ /TODO
+ # in Unterverzeichnissen
+
+ # ignoriert alle Dateien im build/ Verzeichnis
+ build/
+ # ignoriert doc/notes.txt, aber nicht doc/server/arch.txt
+ doc/*.txt
### Die Änderungen in der Staging Area durchsehen ###
View
15 en/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example `.gitignore` file:
# a comment - this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 es-ni/02-git-basics/01-chapter2.markdown
@@ -173,11 +173,16 @@ Los patrones globales son expresiones regulares simplificadas que pueden ser uti
Aquí hay otro ejemplo de un archivo .gitignore:
# un comentario - es ignorado
- *.a # ningún archivo .a
- !lib.a # pero si queremos versionar el archivo lib.a, incluse aunque estemos ignorando los archivos .a más arriba
- /TODO # solo ignorar el archivo TODO del directorio raíz, no de los subdirectorios
- build/ # ignorar todos los archivos dentro del directorio build/
- doc/*.txt # ignorar el archivo doc/notes.txt, pero no doc/server/arch.txt
+ # ningún archivo .a
+ *.a
+ # pero si queremos versionar el archivo lib.a, incluse aunque estemos ignorando los archivos .a más arriba
+ !lib.a
+ # solo ignorar el archivo TODO del directorio raíz, no de los subdirectorios
+ /TODO
+ # ignorar todos los archivos dentro del directorio build/
+ build/
+ # ignorar el archivo doc/notes.txt, pero no doc/server/arch.txt
+ doc/*.txt
### Visualizando Archivos Versionados y No Versionados ###
View
15 es/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Los patrones glob son expresiones regulares simplificadas que pueden ser usadas
He aquí otro ejemplo de archivo .gitignore:
# a comment – this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viendo tus cambios preparados y no preparados ###
View
15 fi/02-git-basics/01-chapter2.markdown
@@ -172,11 +172,16 @@ Keräysmallit ovat kuin yksinkertaistettuja 'säännöllisiä ilmaisuja' (regula
Tässä toinen esimerkki .gitignore tiedostosta:
# kommentti – tämä sivuutetaan
- *.a # ei .a tiedostoja
- !lib.a # mutta jäljitä lib.a, vaikka sivuutatkin .a tiedostot yllä
- /TODO # sivuttaa vain juuren TODO tiedosto, ei subdir/TODO hakemistoa
- build/ # sivuttaa kaikki tiedostot build/ hakemistosta
- doc/*.txt # sivuttaa doc/notes.txt, mutta ei doc/server/arch.txt
+ # ei .a tiedostoja
+ *.a
+ # mutta jäljitä lib.a, vaikka sivuutatkin .a tiedostot yllä
+ !lib.a
+ # sivuttaa vain juuren TODO tiedosto, ei subdir/TODO hakemistoa
+ /TODO
+ # sivuttaa kaikki tiedostot build/ hakemistosta
+ build/
+ # sivuttaa doc/notes.txt, mutta ei doc/server/arch.txt
+ doc/*.txt
### Lavastettujen ja lavastattomien muutosten tarkastelu ###
View
15 fr/02-git-basics/01-chapter2.markdown
@@ -224,11 +224,16 @@ Un astérisque (`*`) correspond à un ou plusieurs caractères ; `[abc]` corres
Voici un autre exemple de fichier `.gitignore` :
# un commentaire, cette ligne est ignorée
- *.a # pas de fichier .a
- !lib.a # mais suivre lib.a malgré la règle précédente
- /TODO # ignorer uniquement le fichier TODO à la racine du projet
- build/ # ignorer tous les fichiers dans le répertoire build
- doc/*.txt # ignorer doc/notes.txt, mais pas doc/server/arch.txt
+ # pas de fichier .a
+ *.a
+ # mais suivre lib.a malgré la règle précédente
+ !lib.a
+ # ignorer uniquement le fichier TODO à la racine du projet
+ /TODO
+ # ignorer tous les fichiers dans le répertoire build
+ build/
+ # ignorer doc/notes.txt, mais pas doc/server/arch.txt
+ doc/*.txt
### Inspecter les modifications indexées et non indexées ###
View
15 id/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Pola Glob adalah seperti regular expression yang disederhanakan yang biasanya di
Berikut adalah contoh lain dari isi berkas .gitignore:
# sebuah komentar – akan diabaikan
- *.a # abaikan berkas .a
- !lib.a # tapi pantau lib.a, walaupun Anda abaikan berkas .a di atas
- /TODO # hanya abaikan berkas TODO yang berada di rooto, bukan di subdir/TODO
- build/ # abaikan semua berkas di dalam direktori build/
- doc/*.txt # abaikan doc/notes.txt, tapi bukan doc/server/arch.txt
+ # abaikan berkas .a
+ *.a
+ # tapi pantau lib.a, walaupun Anda abaikan berkas .a di atas
+ !lib.a
+ # hanya abaikan berkas TODO yang berada di rooto, bukan di subdir/TODO
+ /TODO
+ # abaikan semua berkas di dalam direktori build/
+ build/
+ # abaikan doc/notes.txt, tapi bukan doc/server/arch.txt
+ doc/*.txt
### Melihat Perubahan di Area Stage dan di luar Area Stage ###
View
15 it/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ I glob pattern sono semplicemente espressioni regolari usate dalla shell. Un as
Questo è un altro esempio di file .gitignore:
# un commento - questo è ignorato
- *.a # no file .a
- !lib.a # ma traccia lib.a, mentre vengono ignorati tutti i file .a come sopra
- /TODO # ignora solamente il file TODO in root, non del tipo subdir/TODO
- build/ # ignora tutti i file nella directory build/
- doc/*.txt # ignora doc/note.txt, ma non doc/server/arch.txt
+ # no file .a
+ *.a
+ # ma traccia lib.a, mentre vengono ignorati tutti i file .a come sopra
+ !lib.a
+ # ignora solamente il file TODO in root, non del tipo subdir/TODO
+ /TODO
+ # ignora tutti i file nella directory build/
+ build/
+ # ignora doc/note.txt, ma non doc/server/arch.txt
+ doc/*.txt
### Visualizza le tue modifiche parcheggiate e non ###
View
15 ja/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ glob パターンとは、シェルで用いる簡易正規表現のようなも
では、`.gitignore` ファイルの例をもうひとつ見てみましょう。
# コメント。これは無視されます
- *.a # .a ファイルは無視
- !lib.a # しかし、lib.a ファイルだけは .a であっても追跡対象とします
- /TODO # ルートディレクトリの TODO ファイルだけを無視し、サブディレクトリの TODO は無視しません
- build/ # build/ ディレクトリのすべてのファイルを無視します
- doc/*.txt # doc/notes.txt は無視しますが、doc/server/arch.txt は無視しません
+ # .a ファイルは無視
+ *.a
+ # しかし、lib.a ファイルだけは .a であっても追跡対象とします
+ !lib.a
+ # ルートディレクトリの TODO ファイルだけを無視し、サブディレクトリの TODO は無視しません
+ /TODO
+ # build/ ディレクトリのすべてのファイルを無視します
+ build/
+ # doc/notes.txt は無視しますが、doc/server/arch.txt は無視しません
+ doc/*.txt
### ステージされている変更 / されていない変更の閲覧 ###
View
15 ko/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob 패턴은 정규표현식을 단순하게 만든 것으로 생각하면 되
다음은 .gitignore 파일의 예이다:
# a comment - 이 줄은 무시한다.
- *.a # 확장자가 .a인 파일 무시
- !lib.a # 윗 줄에서 확장자가 .a인 파일은 무시하게 했지만 lib.a는 무시하지 않는다.
- /TODO # 루트 디렉토리에 있는 TODO파일은 무시하고 subdir/TODO처럼 하위디렉토리에 있는 파일은 무시하지 않는다.
- build/ # build/ 디렉토리에 있는 모든 파일은 무시한다.
- doc/*.txt # `doc/notes.txt`같은 파일은 무시하고 doc/server/arch.txt같은 파일은 무시하지 않는다.
+ # 확장자가 .a인 파일 무시
+ *.a
+ # 윗 줄에서 확장자가 .a인 파일은 무시하게 했지만 lib.a는 무시하지 않는다.
+ !lib.a
+ # 루트 디렉토리에 있는 TODO파일은 무시하고 subdir/TODO처럼 하위디렉토리에 있는 파일은 무시하지 않는다.
+ /TODO
+ # build/ 디렉토리에 있는 모든 파일은 무시한다.
+ build/
+ # `doc/notes.txt`같은 파일은 무시하고 doc/server/arch.txt같은 파일은 무시하지 않는다.
+ doc/*.txt
### Staged와 Unstaged 상태의 변경 내용을 보기 ###
View
15 mk/02-git-basics/01-chapter2.markdown
@@ -169,11 +169,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example .gitignore file:
# a comment – this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 nl/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Expansie (`glob`) patronen zijn vereenvoudigde reguliere expressies die shell om
Hier is nog een voorbeeld van een `.gitignore` bestand:
# a comment – this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Je staged en unstaged wijzigingen zien ###
View
15 no-nb/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example `.gitignore` file:
# a comment - this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 pl/02-git-basics/02-chapter2.markdown
@@ -170,11 +170,16 @@ Wyrażenia glob są jak uproszczone wyrażenia regularne, używane przez powłok
Poniżej znajdziesz kolejny przykład pliku `.gitignore`:
# komentarz — ta linia jest ignorowana
- *.a # żadnych plików .a
- !lib.a # ale uwzględniaj lib.a, pomimo ignorowania .a w linijce powyżej
- /TODO # ignoruj plik TODO w katalogu głównym, ale nie podkatalog/TODO
- build/ # ignoruj wszystkie pliki znajdujące się w katalogu build/
- doc/*.txt # ignoruj doc/notatki.txt, ale nie doc/server/arch.txt
+ # żadnych plików .a
+ *.a
+ # ale uwzględniaj lib.a, pomimo ignorowania .a w linijce powyżej
+ !lib.a
+ # ignoruj plik TODO w katalogu głównym, ale nie podkatalog/TODO
+ /TODO
+ # ignoruj wszystkie pliki znajdujące się w katalogu build/
+ build/
+ # ignoruj doc/notatki.txt, ale nie doc/server/arch.txt
+ doc/*.txt
### Podgląd zmian w poczekalni i poza nią ###
View
17 pt-br/02-git-basics/01-chapter2.markdown
@@ -169,12 +169,17 @@ Padrões glob são como expressões regulares simples que os shells usam. Um ast
Segue um outro exemplo de arquivo `.gitignore`:
- # um comentário - isto é ignorado
- *.a # sem arquivos terminados em .a
- !lib.a # mas rastreie lib.a, mesmo que você tenha ignorado arquivos terminados em .a acima
- /TODO # apenas ignore o arquivo TODO na raiz, não o subdiretório TODO
- build/ # ignore todos os arquivos no diretório build/
- doc/*.txt # ignore doc/notes.txt mas, não ignore doc/server/arch.txt
+ # um comentário - isto é ignorado
+ # sem arquivos terminados em .a
+ *.a
+ # mas rastreie lib.a, mesmo que você tenha ignorado arquivos terminados em .a acima
+ !lib.a
+ # apenas ignore o arquivo TODO na raiz, não o subdiretório TODO
+ /TODO
+ # ignore todos os arquivos no diretório build/
+ build/
+ # ignore doc/notes.txt mas, não ignore doc/server/arch.txt
+ doc/*.txt
### Visualizando Suas Mudanças Selecionadas e Não Selecionadas ###
View
15 ru/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob-шаблоны представляют собой упрощённые р
Вот ещё один пример файла .gitignore:
# комментарий — эта строка игнорируется
- *.a # не обрабатывать файлы, имя которых заканчивается на .a
- !lib.a # НО отслеживать файл lib.a, несмотря на то, что мы игнорируем все .a файлы с помощью предыдущего правила
- /TODO # игнорировать только файл TODO находящийся в корневом каталоге, не относится к файлам вида subdir/TODO
- build/ # игнорировать все файлы в каталоге build/
- doc/*.txt # игнорировать doc/notes.txt, но не doc/server/arch.txt
+ # не обрабатывать файлы, имя которых заканчивается на .a
+ *.a
+ # НО отслеживать файл lib.a, несмотря на то, что мы игнорируем все .a файлы с помощью предыдущего правила
+ !lib.a
+ # игнорировать только файл TODO находящийся в корневом каталоге, не относится к файлам вида subdir/TODO
+ /TODO
+ # игнорировать все файлы в каталоге build/
+ build/
+ # игнорировать doc/notes.txt, но не doc/server/arch.txt
+ doc/*.txt
### Просмотр индексированных и неиндексированных изменений ###
View
15 th/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Glob patterns are like simplified regular expressions that shells use. An asteri
Here is another example .gitignore file:
# a comment – this is ignored
- *.a # no .a files
- !lib.a # but do track lib.a, even though you're ignoring .a files above
- /TODO # only ignore the root TODO file, not subdir/TODO
- build/ # ignore all files in the build/ directory
- doc/*.txt # ignore doc/notes.txt, but not doc/server/arch.txt
+ # no .a files
+ *.a
+ # but do track lib.a, even though you're ignoring .a files above
+ !lib.a
+ # only ignore the root TODO file, not subdir/TODO
+ /TODO
+ # ignore all files in the build/ directory
+ build/
+ # ignore doc/notes.txt, but not doc/server/arch.txt
+ doc/*.txt
### Viewing Your Staged and Unstaged Changes ###
View
15 tr/02-git-basics/01-chapter2.markdown
@@ -171,11 +171,16 @@ _Glob_ örüntüleri _shell_'ler tarafından kullanılan basitleştirilmiş kura
Bir `.gitignore` dosyası örneği daha:
# bir yorum - bu görmezden gelinir
- *.a # .a dosyalarını görmezden gel
- !lib.a # ama yukarıda .a dosyalarını görmezden geliyor olsan bile lib.a dosyasını izlemeye al
- /TODO # kök dizindeki /TODO dosyasını (TODO adındaki alt klasörü değil) görmezden gel
- build/ # build/ klasöründeki bütün dosyaları görmezden gel
- doc/*.txt # doc/notes.txt dosyasını görmezden gel ama doc/server/arch.txt dosyasını görmezden gelme
+ # .a dosyalarını görmezden gel
+ *.a
+ # ama yukarıda .a dosyalarını görmezden geliyor olsan bile lib.a dosyasını izlemeye al
+ !lib.a
+ # kök dizindeki /TODO dosyasını (TODO adındaki alt klasörü değil) görmezden gel
+ /TODO
+ # build/ klasöründeki bütün dosyaları görmezden gel
+ build/
+ # doc/notes.txt dosyasını görmezden gel ama doc/server/arch.txt dosyasını görmezden gelme
+ doc/*.txt
### Kayda Hazırlanmış ve Hazırlanmamış Değişiklikleri Görüntülemek ###
View
15 zh-tw/02-git-basics/01-chapter2.markdown
@@ -171,11 +171,16 @@ Glob pattern就像是shell使用的簡化版正規運算式。 星號(`*`)
以下是另一個`.gitignore`的範例檔案:
# 註解,會被忽略。
- *.a # 不要追蹤檔名為 .a 結尾的檔案
- !lib.a # 但是要追蹤 lib.a,即使上方已指定忽略所有的 .a 檔案
- /TODO # 只忽略根目錄下的 TODO 檔案。 不包含子目錄下的 TODO
- build/ # 忽略build/目錄下所有檔案
- doc/*.txt # 忽略doc/notes.txt但不包含doc/server/arch.txt
+ # 不要追蹤檔名為 .a 結尾的檔案
+ *.a
+ # 但是要追蹤 lib.a,即使上方已指定忽略所有的 .a 檔案
+ !lib.a
+ # 只忽略根目錄下的 TODO 檔案。 不包含子目錄下的 TODO
+ /TODO
+ # 忽略build/目錄下所有檔案
+ build/
+ # 忽略doc/notes.txt但不包含doc/server/arch.txt
+ doc/*.txt
### 檢視已暫存及尚未暫存的更動 ###
View
15 zh/02-git-basics/01-chapter2.markdown
@@ -170,11 +170,16 @@ Insert 18333fig0201.png
我们再看一个 `.gitignore` 文件的例子:
# 此为注释 – 将被 Git 忽略
- *.a # 忽略所有 .a 结尾的文件
- !lib.a # 但 lib.a 除外
- /TODO # 仅仅忽略项目根目录下的 TODO 文件,不包括 subdir/TODO
- build/ # 忽略 build/ 目录下的所有文件
- doc/*.txt # 会忽略 doc/notes.txt 但不包括 doc/server/arch.txt
+ # 忽略所有 .a 结尾的文件
+ *.a
+ # 但 lib.a 除外
+ !lib.a
+ # 仅仅忽略项目根目录下的 TODO 文件,不包括 subdir/TODO
+ /TODO
+ # 忽略 build/ 目录下的所有文件
+ build/
+ # 会忽略 doc/notes.txt 但不包括 doc/server/arch.txt
+ doc/*.txt
### 查看已暂存和未暂存的更新 ###
Please sign in to comment.
Something went wrong with that request. Please try again.