-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitgnore.html
733 lines (639 loc) · 29.1 KB
/
gitgnore.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta name="author" content="Gabriel Nakamura" />
<meta name="date" content="2024-07-16" />
<title>Utilizando o gitignore</title>
<script src="site_libs/header-attrs-2.26/header-attrs.js"></script>
<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="site_libs/bootstrap-3.3.5/css/flatly.min.css" rel="stylesheet" />
<script src="site_libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="site_libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="site_libs/bootstrap-3.3.5/shim/respond.min.js"></script>
<style>h1 {font-size: 34px;}
h1.title {font-size: 38px;}
h2 {font-size: 30px;}
h3 {font-size: 24px;}
h4 {font-size: 18px;}
h5 {font-size: 16px;}
h6 {font-size: 12px;}
code {color: inherit; background-color: rgba(0, 0, 0, 0.04);}
pre:not([class]) { background-color: white }</style>
<script src="site_libs/jqueryui-1.13.2/jquery-ui.min.js"></script>
<link href="site_libs/tocify-1.9.1/jquery.tocify.css" rel="stylesheet" />
<script src="site_libs/tocify-1.9.1/jquery.tocify.js"></script>
<script src="site_libs/navigation-1.1/tabsets.js"></script>
<script src="site_libs/navigation-1.1/codefolding.js"></script>
<script src="site_libs/navigation-1.1/sourceembed.js"></script>
<script src="site_libs/clipboard-1.7.1/clipboard.min.js"></script>
<link href="site_libs/primer-tooltips-1.4.0/build.css" rel="stylesheet" />
<link href="site_libs/klippy-0.0.0.9500/css/klippy.min.css" rel="stylesheet" />
<script src="site_libs/klippy-0.0.0.9500/js/klippy.min.js"></script>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
<style type="text/css">
#rmd-source-code {
display: none;
}
</style>
<style type = "text/css">
.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
img {
max-width:100%;
}
.tabbed-pane {
padding-top: 12px;
}
.html-widget {
margin-bottom: 20px;
}
button.code-folding-btn:focus {
outline: none;
}
summary {
display: list-item;
}
details > summary > p:only-child {
display: inline;
}
pre code {
padding: 0;
}
</style>
<style type="text/css">
.dropdown-submenu {
position: relative;
}
.dropdown-submenu>.dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu {
display: block;
}
.dropdown-submenu>a:after {
display: block;
content: " ";
float: right;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 5px 0 5px 5px;
border-left-color: #cccccc;
margin-top: 5px;
margin-right: -10px;
}
.dropdown-submenu:hover>a:after {
border-left-color: #adb5bd;
}
.dropdown-submenu.pull-left {
float: none;
}
.dropdown-submenu.pull-left>.dropdown-menu {
left: -100%;
margin-left: 10px;
border-radius: 6px 0 6px 6px;
}
</style>
<script type="text/javascript">
// manage active state of menu based on current page
$(document).ready(function () {
// active menu anchor
href = window.location.pathname
href = href.substr(href.lastIndexOf('/') + 1)
if (href === "")
href = "index.html";
var menuAnchor = $('a[href="' + href + '"]');
// mark the anchor link active (and if it's in a dropdown, also mark that active)
var dropdown = menuAnchor.closest('li.dropdown');
if (window.bootstrap) { // Bootstrap 4+
menuAnchor.addClass('active');
dropdown.find('> .dropdown-toggle').addClass('active');
} else { // Bootstrap 3
menuAnchor.parent().addClass('active');
dropdown.addClass('active');
}
// Navbar adjustments
var navHeight = $(".navbar").first().height() + 15;
var style = document.createElement('style');
var pt = "padding-top: " + navHeight + "px; ";
var mt = "margin-top: -" + navHeight + "px; ";
var css = "";
// offset scroll position for anchor links (for fixed navbar)
for (var i = 1; i <= 6; i++) {
css += ".section h" + i + "{ " + pt + mt + "}\n";
}
style.innerHTML = "body {" + pt + "padding-bottom: 40px; }\n" + css;
document.head.appendChild(style);
});
</script>
<!-- tabsets -->
<style type="text/css">
.tabset-dropdown > .nav-tabs {
display: inline-table;
max-height: 500px;
min-height: 44px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
}
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
content: "\e259";
font-family: 'Glyphicons Halflings';
display: inline-block;
padding: 10px;
border-right: 1px solid #ddd;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
content: "\e258";
font-family: 'Glyphicons Halflings';
border: none;
}
.tabset-dropdown > .nav-tabs > li.active {
display: block;
}
.tabset-dropdown > .nav-tabs > li > a,
.tabset-dropdown > .nav-tabs > li > a:focus,
.tabset-dropdown > .nav-tabs > li > a:hover {
border: none;
display: inline-block;
border-radius: 4px;
background-color: transparent;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
display: block;
float: none;
}
.tabset-dropdown > .nav-tabs > li {
display: none;
}
</style>
<!-- code folding -->
<style type="text/css">
.code-folding-btn { margin-bottom: 4px; }
</style>
<style type="text/css">
#TOC {
margin: 25px 0px 20px 0px;
}
@media (max-width: 768px) {
#TOC {
position: relative;
width: 100%;
}
}
@media print {
.toc-content {
/* see https://github.com/w3c/csswg-drafts/issues/4434 */
float: right;
}
}
.toc-content {
padding-left: 30px;
padding-right: 40px;
}
div.main-container {
max-width: 1200px;
}
div.tocify {
width: 20%;
max-width: 260px;
max-height: 85%;
}
@media (min-width: 768px) and (max-width: 991px) {
div.tocify {
width: 25%;
}
}
@media (max-width: 767px) {
div.tocify {
width: 100%;
max-width: none;
}
}
.tocify ul, .tocify li {
line-height: 20px;
}
.tocify-subheader .tocify-item {
font-size: 0.90em;
}
.tocify .list-group-item {
border-radius: 0px;
}
</style>
</head>
<body>
<div class="container-fluid main-container">
<!-- setup 3col/9col grid for toc_float and main content -->
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-3">
<div id="TOC" class="tocify">
</div>
</div>
<div class="toc-content col-xs-12 col-sm-8 col-md-9">
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-bs-toggle="collapse" data-target="#navbar" data-bs-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Boas Práticas e Ferramentas da Ciência Aberta na Ecologia - BIE5798</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Início</a>
</li>
<li>
<a href="intro_ciencia_aberta.html">O que é ciência aberta?</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Dados abertos
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="dados_abertos.html">O que são dados abertos?</a>
</li>
<li>
<a href="metadata_EML.html">Metadados</a>
</li>
</ul>
</li>
<li>
<a href="Organizacao_dir_local.html">Organização local</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Versionamento
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="basics_git.html">ABC do versionamento</a>
</li>
<li>
<a href="commits-travel.html">Viajando no tempo</a>
</li>
<li>
<a href="gitgnore.html">Ignorando arquivos</a>
</li>
<li>
<a href="colabs_github.html">Trabalho colaborativo</a>
</li>
<li>
<a href="conflitos.html">Resolvendo conflitos</a>
</li>
<li>
<a href="releasing.html">Release</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Programação letrada
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="rmarkdown-basics.html">Rmarkdown</a>
</li>
<li>
<a href="sites-basics.html">Sites</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Avançado
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="renv-basics.html">Manejo de versões de pacotes</a>
</li>
<li>
<a href="rocker-basics.html">Containers</a>
</li>
<li>
<a href="targets_basics.html">Fluxo de trabalho</a>
</li>
<li>
<a href="metadata_EML_pratice.html">Metadados com EML</a>
</li>
<li>
<a href="git_large_files.html">Manejo de arquivos grandes</a>
</li>
</ul>
</li>
<li>
<a href="publicacoes.html">Acesso aberto</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Outras tendências
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="pre-registro.html">Pré-registro</a>
</li>
<li>
<a href="revisao-codigo.html">Revisão de código</a>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
<div id="header">
<div class="btn-group pull-right float-right">
<button type="button" class="btn btn-default btn-xs btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-right" style="min-width: 50px;">
<li><a id="rmd-download-source" href="#">Download Rmd</a></li>
</ul>
</div>
<h1 class="title toc-ignore">Utilizando o gitignore</h1>
<h4 class="author">Gabriel Nakamura</h4>
<h4 class="date">2024-07-16</h4>
</div>
<script>
addClassKlippyTo("pre.r, pre.markdown");
addKlippy('left', 'top', 'auto', '1', 'Copy code', 'Copied!');
</script>
<div id="apresentação" class="section level1">
<h1>Apresentação</h1>
<p>Nem sempre queremos que o git monitore todos os arquivos presentes no
nosso diretório. Isso pode se dar por alguns motivos. O arquivo pode
conter informações que você não queira que seja pública, ou ainda, uma
pasta inteira contém dados que são pesados demais para serem
versionados, as razões para escapar do monitoramento do versionamento
podem ser muitas. A questão é, como podemos evitar com que estes
arquivos, ou pastas inteiras, sejam versionados pelo git?</p>
<p>Para isso usaremos um arquivo especial chamado
<strong>.gitignore´</strong>. Você deve se lembrar que já vimos
brevemente este arquivo quando criamos o repositório. Ao iniciar o
repositório remoto, o próprio Github nos dá a opção de criar um arquivo
do tipo .gitignore a partir de um modelo pré definido, como mostrado na
imagem abaixo.</p>
<p><img src="figs/template_gitignore.png" width="394" style="display: block; margin: auto;" /></p>
</div>
<div id="editando-o-.gitignore" class="section level1">
<h1>Editando o .gitignore</h1>
<p>Cada linha no .gitignore indica um arquivo que será ignorado. Linhas
em branco não indicam arquivo algum, e são usadas para separar arquivos
que serão ignorados no .gitignore, facilitando sua leitura.</p>
<p>Existem maneiras diferentes de indicar os arquivos que serão
ignorados pelo git. Podemos ignorar arquivos individualmente,
simplesmente colocando o caminho relativo do arquivo, juntamente com o
nome do arquivo acompanhado de sua extensão. Por exemplo, se quisermos
ignorar o arquivo chamado <code>meignore.doc</code> que se encontra na
raiz do projeto, devemos apenas acrescentar em uma linha no gitignore
contendo <code>meignore.doc</code>.</p>
<p>O .gitignore também nos possibilita a utilização de padrões para
ignorar um conjunto de arquivos. Por exemplo, digamos que queremos
ignorar todos os arquivos que tem extensão .jpeg em um subdiretório do
seu working directory. Para tanto podemos inserir no arquivo .gitignore
uma linha contendo <code>pasta/*.jpeg</code>.</p>
</div>
<div id="alguns-exemplos" class="section level1">
<h1>Alguns exemplos</h1>
<p>Existem uma série de padrões. Assumindo que seu .gitignore vai estar
na raiz do diretório (top-level) podemos listar alguns padrões úteis e
como eles se aplicam aos arquivos de um dado diretório. Esta tabela é
uma adaptação <a
href="https://gist.github.com/jstnlvns/ebaa046fae16543cc9efc7f24bcd0e31">desta
versão original</a></p>
<table>
<colgroup>
<col width="20%" />
<col width="45%" />
<col width="34%" />
</colgroup>
<thead>
<tr class="header">
<th>Padrão</th>
<th>Exemplos que são detectados</th>
<th>Explicação</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>**/logs</td>
<td>logs/debug.log</br>logs/monday/foo.bar</br>build/logs/debug.log</td>
<td>Acrescentar dois asteriscos para detectar qualquer diretório no seu
repositório.</td>
</tr>
<tr class="even">
<td>**/logs/debug.log</td>
<td>logs/debug.log</br>build/logs/debug.log</br><em>mas
não</em></br>logs/build/debug.log</td>
<td>Detecta qualquer arquivo baseado em seu nome e o nome do diretório
pai.</td>
</tr>
<tr class="odd">
<td>*.log</td>
<td>debug.log</br>foo.log</br>.log</br>logs/debug.log</td>
<td>Detecta qualquer (ou zero) caracteres de arquivos que tenha a
extensão .log.</td>
</tr>
<tr class="even">
<td>*.log<br>!important.log</td>
<td>debug.log</br>trace.log</br><em>mas
não</em></br>important.log</br>logs/important.log</td>
<td>Nega (não ignora) o padrão informado. Se um arquivo corresponde ao
padrão, mas também corresponde ao padrão para não ser ignorado, este
arquivo não vai ser ignorado.</td>
</tr>
<tr class="odd">
<td>/debug.log</td>
<td>debug.log</br><em>but not</em></br>logs/debug.log</td>
<td>Usando o slash faz correspondencia apenas a arquivos na raiz do
repositório.</td>
</tr>
<tr class="even">
<td>debug.log</td>
<td>debug.log</br>logs/debug.log</td>
<td>Corresponde ao padrão em qualquer repositório</td>
</tr>
<tr class="odd">
<td>debug?.log</td>
<td>debug0.log</br>debugg.log</br><em>mas não</em></br>debug10.log</td>
<td>Uma interrogação vai corresponder exatamente a um caracter.</td>
</tr>
<tr class="even">
<td>debug[0-9].log</td>
<td>debug0.log</br>debug1.log</br><em>mas não</em></br>debug10.log</td>
<td>Colchetes podem ser usados para correponder a qualquer caracter
dentro de um limite especificado.</td>
</tr>
<tr class="odd">
<td>debug[!01].log</td>
<td>debug2.log</br><em>mas
não</em></br>debug0.log</br>debug1.log</br>debug01.log</td>
<td>Ponto de exclamação também pode ser usado para ignorar um caracter
específico.</td>
</tr>
<tr class="even">
<td>debug[a-z].log</td>
<td>debuga.log</br>debugb.log</br><em>mas não</em></br>debug1.log</td>
<td>Os limites dentro dos colchetes podem ser numéricos ou
alfabéticos.</td>
</tr>
<tr class="odd">
<td>logs</td>
<td>logs</br>logs/debug.log</br>logs/latest/foo.bar</br>build/logs</br>build/logs/debug.log</td>
<td>Se não for inserida uma barra, o padrão irá corresponder tanto a
pastas quanto os arquivos dentro das pastas que correspondem ao padrão
indicado.</td>
</tr>
<tr class="even">
<td>logs/</td>
<td>logs/debug.log</br>logs/latest/foo.bar</br>build/logs/foo.bar</br>build/logs/latest/debug.log</td>
<td>A barra indica que o padrão corresponde a um diretório específico.
Todo conteúdo de qualquer diretório no repositório que corresponda ao
padrão, e todos os arquivos dentro dele, serão ignorados.</td>
</tr>
<tr class="odd">
<td>logs/*day/debug.log</td>
<td>logs/monday/debug.log<br>logs/tuesday/debug.log</br><em>but
not</em></br>logs/latest/debug.log</td>
<td>Wildcards podem ser usados em qualquer diretório dentro do
repositório.</td>
</tr>
<tr class="even">
<td>logs/debug.log</td>
<td>logs/debug.log</br><em>mas
não</em></br>debug.log</br>build/logs/debug.log</td>
<td>Padrões especificando um arquivo em um diretório particular
correspondem apenas ao caminho a partir da raiz.</td>
</tr>
</tbody>
</table>
</div>
<div id="alguns-problemas-ignorando-arquivos-após-adicionados"
class="section level1">
<h1>Alguns problemas: ignorando arquivos após adicionados</h1>
<p>Um problema comum de se deparar é quando adicionamos um arquivo, ou
uma pasta no repositório que está sendo versionado, e logo após nos
damos conta de que não gostaríamos de que estes arquivos fossem
versionados.</p>
<p>Adicioná-los no .gitignore não vai resolver o problema, pois o git já
entendeu que eles devem ser monitorados. Neste caso teremos que fazer um
pequeno procedimento antes de adicioná-los no .gitignore.</p>
<p>Primeiro precisamos remover estes, ou este, arquivo da “memória” de
monitoramento do git. Para isso iremos digitar na linha de comando
<code>git rm --cached nome-do-arquivo.extensão</code></p>
<p>Após esse procedimento adicionamos o nome do arquivo no
.gitignore</p>
<p>A partir deste momento o arquivo adicionado não será mais monitorado
pelo git, mas ainda vai estar presente no seu diretório. Além disso, o
histórico de commits que foi realizado enquanto esse arquivo estava
sendo monitorado não vai desaparecer.</p>
<p>Portanto, a melhor prática sempre é pensar bem antes de adicionar
qualquer arquivo na pasta monitorada pelo git.</p>
</div>
<div id="outras-referências-úteis" class="section level1">
<h1>Outras referências úteis</h1>
<p>Para mais referências sobre padrões e como montar o arquivo
.gitignore, consulte estas fontes</p>
<ul>
<li><p><a
href="https://docs.github.com/pt/get-started/getting-started-with-git/ignoring-files">Documentação
do Github</a></p></li>
<li><p><a href="https://git-scm.com/docs/gitignore">Documentação do
Git</a></p></li>
<li><p><a href="https://github.com/github/gitignore">Alguns modelos de
arquivos .gitignore</a></p></li>
</ul>
</div>
<div id="rmd-source-code">LS0tDQp0aXRsZTogJ1V0aWxpemFuZG8gbyBnaXRpZ25vcmUnDQphdXRob3I6ICJHYWJyaWVsIE5ha2FtdXJhIg0KZGF0ZTogImByIFN5cy5EYXRl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250YXIgbyBhcnF1aXZvIC5naXRpZ25vcmUsIGNvbnN1bHRlIGVzdGFzIGZvbnRlcw0KDQotIFtEb2N1bWVudGHDp8OjbyBkbyBHaXRodWJdKGh0dHBzOi8vZG9jcy5naXRodWIuY29tL3B0L2dldC1zdGFydGVkL2dldHRpbmctc3RhcnRlZC13aXRoLWdpdC9pZ25vcmluZy1maWxlcykNCg0KLSBbRG9jdW1lbnRhw6fDo28gZG8gR2l0XShodHRwczovL2dpdC1zY20uY29tL2RvY3MvZ2l0aWdub3JlKQ0KDQotIFtBbGd1bnMgbW9kZWxvcyBkZSBhcnF1aXZvcyAuZ2l0aWdub3JlXShodHRwczovL2dpdGh1Yi5jb20vZ2l0aHViL2dpdGlnbm9yZSkNCg0K</div>
</div>
</div>
</div>
<script>
// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
$('tr.odd').parent('tbody').parent('table').addClass('table table-condensed');
}
$(document).ready(function () {
bootstrapStylePandocTables();
});
</script>
<!-- tabsets -->
<script>
$(document).ready(function () {
window.buildTabsets("TOC");
});
$(document).ready(function () {
$('.tabset-dropdown > .nav-tabs > li').click(function () {
$(this).parent().toggleClass('nav-tabs-open');
});
});
</script>
<!-- code folding -->
<script>
$(document).ready(function () {
window.initializeSourceEmbed("gitgnore.Rmd");
});
</script>
<script>
$(document).ready(function () {
// temporarily add toc-ignore selector to headers for the consistency with Pandoc
$('.unlisted.unnumbered').addClass('toc-ignore')
// move toc-ignore selectors from section div to header
$('div.section.toc-ignore')
.removeClass('toc-ignore')
.children('h1,h2,h3,h4,h5').addClass('toc-ignore');
// establish options
var options = {
selectors: "h1,h2,h3",
theme: "bootstrap3",
context: '.toc-content',
hashGenerator: function (text) {
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_');
},
ignoreSelector: ".toc-ignore",
scrollTo: 0
};
options.showAndHide = true;
options.smoothScroll = true;
// tocify
var toc = $("#TOC").tocify(options).data("toc-tocify");
});
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
</body>
</html>