Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git e Github
Workshop de git realizado na Fatec Franca.
Scalone
May 15, 2017
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
120
20k mRuby devices in Production
scalone
0
510
DaFunk, IOT Framework in Ruby
scalone
0
200
Concurrency in the imperative and functional world
scalone
0
240
Git, o que é, do que é feito, para que serve?
scalone
0
390
DaFunk, IOT Framework in Ruby
scalone
0
240
Uzmenino Marketplace
scalone
0
170
Building a CLI with mruby-cli
scalone
1
360
Other Decks in Programming
See All in Programming
JIS keyboard support in Omarchy
lef237
0
170
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
4
1.4k
オーケストレーション記述言語 Katari
yukikurage
0
210
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.5k
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
260
GraphQL の onError と Nullability のこれから
quramy
0
200
Seven New Principles of Software Engineering
yegor256
0
390
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
150
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
200
sbt 2.0: takeoff
eed3si9n
0
180
contenteditable と日本語入力に向き合う
colorful12
0
230
ActionController meets Protocol Buffers
sorah
1
750
Featured
See All Featured
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
290
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
440
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Embracing the Ebb and Flow
colly
88
5.2k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
820
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
500
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
310
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
880
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
380
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
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]