-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·147 lines (140 loc) · 5.36 KB
/
index.html
File metadata and controls
executable file
·147 lines (140 loc) · 5.36 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Git workshop</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/blueprint.css" id="theme">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-background="#f5f5f5">
<img src="imgs/git-logo.png" alt=""/>
</section>
<section data-background="css/theme/images/linus.png"
data-background-color="#424242"
data-background-repeat="no-repeat"
data-background-size="300px 300px"
data-background-position="bottom left">
<h1>Criado por Linus Torvalds</h1>
</section>
<section data-background="#311b92">
<section>
<h2><b>Instalação</b></h2>
<p>Linux<br>
<b># apt-get install git</b></p>
<p>Mac OS<br>
<b>$ brew install git</b></p>
<p>Windows<br>
<b><a href="https://desktop.github.com/">desktop.github.com</a></b><br />
<small>*instruções abaixo para executar o shell*</small>
<aside class="notes">
* Criar conta no GitHub! <br>
* GitHub x BitBucket x GitLab
</aside>
</p>
</section>
<section>
<img src="imgs/git-windows.png" alt="" />
</section>
<section>
<img src="imgs/git-windows-shell.png" alt="" />
</section>
</section>
</section>
<section data-background="#455a64">
<h1><b>$ git --help</b></h1>
<p>Lista os subcomandos e descreve alguns conceitos.</p>
</section>
<section data-background="#304ffe">
<h2><b>$ git config --global user.name "Marina Limeira"</b></h2>
<p>Configura o nome do usuário que fará os commits.</p>
</section>
<section data-background="#bf360c">
<h2><b>$ git config --global user.email marinaflessa@gmail.com</b></h2>
<p>Configura o e-mail do usuário que fará os commits.</p>
</section>
<section data-background="#1a237e">
<h1><b>$ git init</b></h1>
<p>Inicia um repositório.</p>
</section>
<section data-background="#00838f">
<h1><b>$ git remote add origin <i>repo</i></b></h1>
<p>Conecta a um repositório remoto.</p>
</section>
<section data-background="#424242">
<h1><b>$ git clone <i>url</i></b></h1>
<p>Cria uma cópia do repositório localmente.</p>
</section>
<section data-background="#4a148c">
<h1><b>https x ssh</b></h1>
</section>
<section data-background="#bf360c">
<h1><b>$ git add <i>file</i></b></h1>
<p>Prepara os arquivos para commit.</p>
</section>
<section data-background="#004d40">
<h1><b>$ git rm <i>file</i></b></h1>
<p>Remove o arquivo do repositório.</p>
</section>
<section data-background="#006064">
<h1><b>$ git commit -m <i>message</i></b></h1>
<p>Commita os arquivos que foram agendados com <b>git add</b>.</p>
</section>
<section data-background="#c51162">
<h1><b>$ git push origin <i>branch</i></b></h1>
<p>Envia os commits para um branch remoto.</p>
</section>
<section data-background="#c62828">
<h1><b>$ git pull origin <i>branch</i></b></h1>
<p>Atualiza os commits do seu repositório.</p>
<aside class="notes">
Dar pull antes de criar um commit.
</aside>
</section>
<section data-background="#4527a0">
<h1><b>$ git diff</i></b></h1>
<p>Mostra as alterações locais.</p>
</section>
<section data-background="#0091ea">
<h1><b>$ git log</i></b></h1>
<p>Mostra os commits que foram feitos.</p>
</section>
<section data-background="#00c853">
<h2>E agora?</h2>
<h2><b><a href="https://education.github.com/pack">education.github.com/pack</a></b></h2>
<br />
<h3>.gitignore, branch, merge, pull request, checkout, reset, rebase, fork, git flow</h3>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
history: true,
transition: 'fade',
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>