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
85
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
180
Produtividade e Xcode Template
serralvo
0
150
iMessage Apps
serralvo
0
140
Notificações no iOS 10
serralvo
0
98
Other Decks in Programming
See All in Programming
エラーって何種類あるの?
kajitack
5
280
Java on Azure で LangGraph!
kohei3110
0
160
Elixir で IoT 開発、 Nerves なら簡単にできる!?
pojiro
1
150
「ElixirでIoT!!」のこれまでとこれから
takasehideki
0
370
A2A プロトコルを試してみる
azukiazusa1
2
870
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
360
Claude Codeの使い方
ttnyt8701
1
130
ReadMoreTextView
fornewid
1
450
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
120
都市をデータで見るってこういうこと PLATEAU属性情報入門
nokonoko1203
1
550
Cursor AI Agentと伴走する アプリケーションの高速リプレイス
daisuketakeda
1
120
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
320
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Optimizing for Happiness
mojombo
379
70k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Facilitating Awesome Meetings
lara
54
6.4k
How to train your dragon (web standard)
notwaldorf
92
6.1k
Documentation Writing (for coders)
carmenintech
71
4.9k
The Pragmatic Product Professional
lauravandoore
35
6.7k
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