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
Fabricio Serralvo
September 13, 2016
Programming
0
79
Mini-curso de Git
Keynote usado no Mini-curso de Git, apresentado na 18a Semana Integrada da PUC-Campinas.
Fabricio Serralvo
September 13, 2016
Tweet
Share
More Decks by Fabricio Serralvo
See All by Fabricio Serralvo
Um Pouco Sobre Property Wrappers
serralvo
2
160
Produtividade e Xcode Template
serralvo
0
140
iMessage Apps
serralvo
0
140
Notificações no iOS 10
serralvo
0
91
Other Decks in Programming
See All in Programming
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
200
Simple組み合わせ村から大都会Railsにやってきた俺は / Coming to Rails from the Simple
moznion
3
3.7k
月刊 競技プログラミングをお仕事に役立てるには
terryu16
1
1.3k
Amazon Bedrock Multi Agentsを試してきた
tm2
1
240
GitHub CopilotでTypeScriptの コード生成するワザップ
starfish719
28
6.1k
PicoRubyと暮らす、シェアハウスハック
ryosk7
0
250
動作確認やテストで漏れがちな観点3選
starfish719
5
880
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
240
社内フレームワークとその依存性解決 / in-house framework and its dependency management
vvakame
1
500
AHC041解説
terryu16
0
550
AWS re:Invent 2024個人的まとめ
satoshi256kbyte
0
150
Immutable ActiveRecord
megane42
0
120
Featured
See All Featured
Building Applications with DynamoDB
mza
93
6.2k
Typedesign – Prime Four
hannesfritz
40
2.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
Bash Introduction
62gerente
610
210k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
YesSQL, Process and Tooling at Scale
rocio
171
14k
Speed Design
sergeychernyshev
25
760
Become a Pro
speakerdeck
PRO
26
5.1k
KATA
mclloyd
29
14k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.3k
Embracing the Ebb and Flow
colly
84
4.5k
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