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
Scalone
May 15, 2017
Programming
110
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
110
20k mRuby devices in Production
scalone
0
490
DaFunk, IOT Framework in Ruby
scalone
0
190
Concurrency in the imperative and functional world
scalone
0
230
Git, o que é, do que é feito, para que serve?
scalone
0
380
DaFunk, IOT Framework in Ruby
scalone
0
230
Uzmenino Marketplace
scalone
0
160
Building a CLI with mruby-cli
scalone
1
360
Other Decks in Programming
See All in Programming
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
590
Building a Meta Ray-Ban display app
akkeylab
0
140
What's New in Android 2026
veronikapj
0
260
Flow は今どうなっているか
mizdra
PRO
0
450
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
1
850
源内ハンズオン概要編
hideg
0
180
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
140
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
680
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
580
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
510
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
230
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
4.3M
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
430
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Design in an AI World
tapps
1
280
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
370
Ethics towards AI in product and experience design
skipperchong
2
340
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
410
Exploring anti-patterns in Rails
aemeredith
3
460
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.5k
Agile that works and the tools we love
rasmusluckow
331
22k
Docker and Python
trallard
47
4.1k
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]