Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git
Search
Felipe Renan
June 06, 2018
Programming
3
60
Git
Introdução ao Git e Github.
Felipe Renan
June 06, 2018
Tweet
Share
More Decks by Felipe Renan
See All by Felipe Renan
Elixir - Tic Tac Toe
feliperenan
0
44
Elixir metaprogramming
feliperenan
0
43
Other Decks in Programming
See All in Programming
react-callを使ってダイヤログをいろんなとこで再利用しよう!
shinaps
1
180
JSONataを使ってみよう Step Functionsが楽しくなる実践テクニック #devio2025
dafujii
0
410
Honoアップデート 2025年夏
yusukebe
1
920
testingを眺める
matumoto
1
130
為你自己學 Python - 冷知識篇
eddie
1
340
CJK and Unicode From a PHP Committer
youkidearitai
PRO
0
110
Ruby Parser progress report 2025
yui_knk
1
300
RDoc meets YARD
okuramasafumi
4
160
旅行プランAIエージェント開発の裏側
ippo012
2
860
複雑なドメインに挑む.pdf
yukisakai1225
5
990
プロポーザル駆動学習 / Proposal-Driven Learning
mackey0225
2
900
MLH State of the League: 2026 Season
theycallmeswift
0
220
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Practical Orchestrator
shlominoach
190
11k
Code Reviewing Like a Champion
maltzj
525
40k
How GitHub (no longer) Works
holman
315
140k
Six Lessons from altMBA
skipperchong
28
4k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
How to Think Like a Performance Engineer
csswizardry
26
1.9k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
Into the Great Unknown - MozCon
thekraken
40
2k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Documentation Writing (for coders)
carmenintech
74
5k
Transcript
Carregando…
Felipe Renan feliperenan @feeliperenan
None
None
O que é versionamento?
Em algum momento nós já versionamos algo...
Trabalho
Trabalho Trabalho_final
Trabalho Trabalho_final Trabalho_agora_vai
None
None
Softwares usados para versionamento
História do GIT
Linus Torvalds
Primeiro commit do Git
Alguns conceitos essenciais 16
As operações são efetuadas localmente 17
Git tem integridade 18
O Git, geralmente apenas adiciona dados 19
Git != Github 20
21
Fluxo básico
Adicionar / Modificar arquivos
Selecionar arquivos que entrarão no Commit
“Commitar”
Princípais comandos git init git status git add <arquivo> git
commit git log git push git pull git checkout
Hora do show :)
Branchs
O que são branchs?
Commit 1 Master
Commit 1 Commit 2 Master
Commit 1 Commit 2 Master Commit 3
$ git branch new-branch
Commit 1 Commit 2 Master Commit 3 new-branch
$ git checkout new-branch
Commit 1 Commit 2 Master Commit 3 new-branch Commit 4
Commit 1 Commit 2 Master Commit 3 new-branch Commit 4
Commit 5
$ git checkout master
$ git merge new-branch
Commit 1 Commit 2 Master Commit 3 new-branch Commit 4
Merge Commit Commit 5
Porque devemos utilizar branchs?
Facilita a organização do projeto em equipes
Ajuda a organizar o histórico do Git
Facilita a revisão do trabalho
Dicas
https://github.com/nvie/gitflow
http://ohshitgit.com/
https://github.com/github/hub
Referências • http://ericsink.com/vcbe/html/history_of_version_control.html • http://www.catb.org/~esr/writings/version-control/version-control.html • https://git-scm.com • https://www.linuxfoundation.org/blog/10-years-of-git-an-interview-with- git-creator-linus-torvalds/
Obrigado :)