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
Mini-curso de Git
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Fabricio Serralvo
September 13, 2016
Programming
94
0
Share
Mini-curso de Git
Keynote usado no Mini-curso de Git, apresentado na 18a Semana Integrada da PUC-Campinas.
Fabricio Serralvo
September 13, 2016
More Decks by Fabricio Serralvo
See All by Fabricio Serralvo
Um Pouco Sobre Property Wrappers
serralvo
2
200
Produtividade e Xcode Template
serralvo
0
160
iMessage Apps
serralvo
0
160
Notificações no iOS 10
serralvo
0
110
Other Decks in Programming
See All in Programming
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
380
Kingdom of the Machine
yui_knk
2
740
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
2
920
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
150
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
170
Liberating Ruby's Parser from Lexer Hacks
ydah
2
1.9k
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
150
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
390
NakouPAY説明用
annouim0
0
250
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
1k
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
800
Featured
See All Featured
The Invisible Side of Design
smashingmag
303
52k
Documentation Writing (for coders)
carmenintech
77
5.3k
How to Talk to Developers About Accessibility
jct
2
180
So, you think you're a good person
axbom
PRO
2
2k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
How to build a perfect <img>
jonoalderson
1
5.4k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
110
Rails Girls Zürich Keynote
gr2m
96
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Pragmatic Product Professional
lauravandoore
37
7.2k
The Curse of the Amulet
leimatthew05
1
11k
Transcript
None
Prazer, Fabrício • Desenvolvedor iOS no Instituto Eldorado • Background
web (2012 ~ 2014) • Sistemas de Informação, PUC Campinas
Desenvolvendo Software • Software na faculdade • Software na vida
real • Comparativo
O que é Git? • Criado por Linus Torvalds •
Controle de Versão • Ferramenta chave para desenvolvimento
E quem usa Git? • 69.3% de acordo com o
StackOverflow Survey 2015 • Google, Microsoft, Facebook, Twitter http://stackoverflow.com/research/developer-survey-2015 & https://git-scm.com
E esse tal de Github? • Hospedagem de projetos •
Rede Social • Comunidade Open Source
Comandos Iniciais • Primeira atividade • No Windows: git bash
• Unix like: Terminal
$ git —version
$ sudo apt-get install git
$ git config —global user.name “Nome" $ git config —global
user.email “seu@email“
$ git init
$ git add arquivo.txt
$ git commit -m “Inclusão do arquivo.txt”
$ git log
$ git status
$ git checkout — arquivo
Código Remoto • Segunda atividade • Acesse github.com/join e crie
sua conta • Após a criação da conta: github.com/ new
$ git remote add origin https://github.com/serralvo/minicurso.git
$ git push origin master
Código Remoto • Acesse a página do repositório criado •
Clique no botão “Create new file” • Edite o arquivo e clique no botão “Commit new file”
$ git pull origin master
Branch • O que é • Quando usar • Terceira
atividade
$ git branch correcao
$ git checkout correcao
$ git add arquivo.txt
$ git commit -m “Alteração na branch correcao"
Merge • O que é • Objetivo • Ultima atividade
$ git checkout master
$ git merge correcao
C1 C2 C3 master correcao C4
Para finalizar • Student Pack: education.github.com • Comandos úteis •
Opções gráficas e outros hosts
bit.ly/fb-minicurso
Obrigado! serralvo.co