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 e Github
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Scalone
May 15, 2017
Programming
0
100
Git e Github
Workshop de git realizado na Fatec Franca.
Scalone
May 15, 2017
Tweet
Share
More Decks by Scalone
See All by Scalone
TDD - Test Driven Development
scalone
0
3
Ruby, Web and IOT with the same Platform
scalone
0
100
20k mRuby devices in Production
scalone
0
460
DaFunk, IOT Framework in Ruby
scalone
0
170
Concurrency in the imperative and functional world
scalone
0
220
Git, o que é, do que é feito, para que serve?
scalone
0
350
DaFunk, IOT Framework in Ruby
scalone
0
210
Uzmenino Marketplace
scalone
0
150
Building a CLI with mruby-cli
scalone
1
340
Other Decks in Programming
See All in Programming
ぼくの開発環境2026
yuzneri
1
290
PJのドキュメントを全部Git管理にしたら、一番喜んだのはAIだった
nanaism
0
210
Premier Disciplin for Micro Frontends Multi Version/ Framework Scenarios @OOP 2026, Munic
manfredsteyer
PRO
0
190
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
1.1k
Raku Raku Notion 20260128
hareyakayuruyaka
0
420
atmaCup #23でAIコーディングを活用した話
ml_bear
4
680
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
430
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
2k
AWS Infrastructure as Code の新機能 2025 総まとめ~ SA 4人による怒涛のデモ祭り ~
konokenj
8
1.6k
浮動小数の比較について
kishikawakatsumi
0
340
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
350
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
310
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
930
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
Building AI with AI
inesmontani
PRO
1
740
From π to Pie charts
rasagy
0
140
Producing Creativity
orderedlist
PRO
348
40k
Visualization
eitanlees
150
17k
Google's AI Overviews - The New Search
badams
0
920
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
130
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
180
Transcript
GIT E GITHUB THIAGO SCALONE - @SCALONE
@SCALONE
AGENDA ▸ Controle de versão ▸ Mão na massa ▸
Vocabulário ▸ Controle de versão centralizado ▸ Controle de versão distribuído ▸ Git ▸ Github ▸ Mão na massa
CONTROLE DE VERSÃO
SOFTWARE
SOFTWARE A B C D
SOFTWARE A B C D
PEN DRIVE A B C D
NOOOOO A B C D
CONTROLE DE VERSÃO
CONTROLE DE VERSÃOHistórico
CONTROLE DE VERSÃOHistórico Trabalho em equipe
CONTROLE DE VERSÃOHistórico Trabalho em equipe Ramificação
CONTROLE DE VERSÃOHistórico Trabalho em equipe Marcação e resgate Ramificação
MÃO NA MASSA
VOCABULÁRIO
VOCABULÁRIO CHECKOUT
VOCABULÁRIO CHECKOUT 3 7 2 … 6 …
VOCABULÁRIO COMMIT
VOCABULÁRIO COMMIT 3 2 …
VOCABULÁRIO BRANCH
VOCABULÁRIO BRANCH 8 7 4 6 3 BRANCH A BRANCH
B
VOCABULÁRIO MERGE
VOCABULÁRIO MERGE 7 4 6 3 BRANCH A BRANCH B
VOCABULÁRIO FORK
VOCABULÁRIO FORK 8 7 4 6 3 SCALONE/PROJECT 8 7
4 6 3 USER/PROJECT
VOCABULÁRIO PULL REQUEST
VOCABULÁRIO PULL REQ. 7 6 3 SCALONE/PROJECT 8 4 3
USER/PROJECT BRANCH A BRANCH B
TIPOS DISTRIBUIDO CENTRALIZADO
CENTRALIZADO
CENTRALIZADO
CVS (CONCURRENT VERSION SYSTEM) ▸ Checkout - Download de versão
▸ Commit - Envio de modificações ▸ Update - Atualização local ▸ Merge - Fusão total das modificações, sem histórico ▸ Lock - Bloqueia arquivo sendo alterado.
SVN (SUBVERSION) ▸ Igual ao CVS ▸ Renomear - Renomear
arquivo com histórico ▸ Mover - Mover arquivo com histórico ▸ Merge - Fusão total das modificações, sem histórico
DISTRIBUIDO
DISTRIBUIDO
GIT ▸ Criado por Linus Torvalds ▸ Utiliza o sistema
de arquivos .git, leve. ▸ Commit/Merge/Update - Offline ▸ Copia total do repositório ▸ Utiliza SHA1 para controle de alterações
SHA1 7)if (argc >= 2) { 8) if (strcmp(argv[1], "thiago.scalone")
== 0) { 9) printf("\nCowabunga!\n"); 10) } 11) 12) 13) if (strcmp(argv[1], "patrick.barcelos") == 0) { 14) printf("\nLet's go!\n"); 15) } 16) 17) if (strcmp(argv[1], "kaiopessoni") == 0) { 18) printf("\nWhat's up dude!\n"); 19) }
SHA1 ^80ac8a2 (Thiago Scalone 2016-10-27 22:00:48 -0200 7) ^80ac8a2 (Thiago
Scalone 2016-10-27 22:00:48 -0200 8) ^80ac8a2 (Thiago Scalone 2016-10-27 22:00:48 -0200 9) ^80ac8a2 (Thiago Scalone 2016-10-27 22:00:48 -0200 10) d88e5763 (AndreiaAlves 2016-10-27 22:53:35 -0200 11) 9c58d201 (JOhn 2016-10-27 22:52:23 -0200 12) f49e9a57 (Patrick 2016-10-27 22:44:04 -0200 13) f49e9a57 (Patrick 2016-10-27 22:44:04 -0200 14) f49e9a57 (Patrick 2016-10-27 22:44:04 -0200 15) 8fec1a93 (Patrick 2016-10-27 23:01:05 -0200 16) 936203a7 (Aluno 2016-10-27 22:39:21 -0200 17) 936203a7 (Aluno 2016-10-27 22:39:21 -0200 18) 8fec1a93 (Patrick 2016-10-27 23:01:05 -0200 19)
SETUP
COMANDOS ▸ git init . ▸ git add . ▸
git commit ▸ git push ▸ git branch ▸ git checkout ▸ .gitignore
OPERAÇÕES LOCAIS WORKING DIRECTORY STAGING AREA GIT DIRECTORY STAGE FILES
GIT ADD <FILE> COMMIT GIT COMMIT -M “ADD FILE” CHECKOUT GIT CHECKOUT <BRANCH>
GITHUB
GIT != GITHUB
GITHUB
GITHUB Repositório de código
GITHUB Repositório de código coloboração
GITHUB Repositório de código coloboração discussão
GITHUB Repositório de código coloboração distribuição discussão
GITHUB
GITHUBRede Social para Desenvolvedores
GITHUB ▸ Criado em 2007 (público em 2008) ▸ São
Francisco ▸ Open Source Free ▸ Private Pago ▸ Receita $140M anual ▸ Github Pages ▸ 3 M users + 10M repos
None
GITHUB
GITHUB CV
MÃO NA MASSA
OBRIGADO @SCALONE
[email protected]