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
77
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
150
Produtividade e Xcode Template
serralvo
0
130
iMessage Apps
serralvo
0
120
Notificações no iOS 10
serralvo
0
88
Other Decks in Programming
See All in Programming
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
390
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
3
300
Fragment Composition of GraphQL
quramy
13
1.3k
SIMD Parallel Programming with the Vector API
josepaumard
0
220
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
120
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
Ruby Function Composition
bkuhlmann
1
340
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
300
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
480
PostmanでAPIの動作確認が楽になった話
h455h1
0
170
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
270
Deep Dive into React Stream/Serialize
mugi_uno
2
270
Featured
See All Featured
Become a Pro
speakerdeck
PRO
12
4.6k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
Thoughts on Productivity
jonyablonski
59
3.8k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
10
1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
20
1.4k
Optimising Largest Contentful Paint
csswizardry
11
2.4k
In The Pink: A Labor of Love
frogandcode
138
21k
The Cost Of JavaScript in 2023
addyosmani
18
3.9k
The Pragmatic Product Professional
lauravandoore
26
5.8k
Facilitating Awesome Meetings
lara
43
5.6k
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