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 lightning talk
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Caio Gondim
January 11, 2013
Programming
300
5
Share
Git lightning talk
Boas práticas e alguns atalhos
Caio Gondim
January 11, 2013
More Decks by Caio Gondim
See All by Caio Gondim
256 shades of R, G and B
caiogondim
1
130
AB Test
caiogondim
9
700
Designing JS APis
caiogondim
3
270
CSS Layout: O ontem, o hoje e o depois
caiogondim
1
150
HTML5 Sensitivo
caiogondim
5
380
Sublime Text 2 pro tips
caiogondim
21
2.5k
Brazil
caiogondim
2
330
HTML5 - Seu navegador não é mais o mesmo
caiogondim
5
270
História dos Sistemas Operacionais de Videogames
caiogondim
3
900
Other Decks in Programming
See All in Programming
AI 時代のソフトウェア設計の学び方
masuda220
PRO
22
7.9k
AI Agent と正しく分析するための環境作り
yoshyum
2
610
Cloudflare で始める Data Platform
ta93abe
0
300
CSC307 Lecture 17
javiergs
PRO
0
240
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
150
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
1.8k
SkillsをS3 Filesに置く時のあれこれ
watany
4
1.8k
TSKaigi2026-静的解析への投資がAI時代のコード品質を支える ── カスタムESLintルールの設計と運用
hayatokudou
6
1.1k
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
210
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
7
1.9k
今さら聞けないCancellationToken
htkym
0
190
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
210
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
810
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
ラッコキーワード サービス紹介資料
rakko
1
3.4M
Utilizing Notion as your number one productivity tool
mfonobong
4
310
Color Theory Basics | Prateek | Gurzu
gurzu
0
320
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Into the Great Unknown - MozCon
thekraken
41
2.5k
Design in an AI World
tapps
1
220
Information Architects: The Missing Link in Design Systems
soysaucechin
0
940
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Navigating Team Friction
lara
192
16k
Transcript
lightning talk
branches
branches • branch de desenvolvimento • syncar código entre devs
dev
branches • branch de teste • merge da dev •
teste para produção • ambiente similar ao de produção staging
branches • código de produção • código homolagado em staging
• merge da staging production
branches • feature que vai levar mais de um commit
• algo que pode quebrar alguma branch • manter a sua bagunça separada branch X
branches • $ git branch -a listar branches
branches • $ git checkout --orphan nova_branch • branch sem
pai • bom para arquivos de suporte, design, ... branch orfã
log
log • $ git log --name-only log do repositório
log • $ git log filename log de um arquivo
log • $ git show commitID --name-only detalhes de um
commit
blame
blame • $ git blame filename • mostra quem inseriu
cada linha blame de arquivo
blame • $ git blame -L 10,20 filename • limita
entre as linhas 10 e 20 blame de arquivo entre linhas
reverter mudanças
reverter mudanças • $ git clean -f • deixa repositório
idêntico ao último commit • deleta arquivos limpar repositório
reverter mudanças • $ git checkout commitID voltar para commit
antigo
commit messages
commit messages • resumo < 80 char • nova linha
• descrição completa • msg no presente perfeito Boas práticas
commit messages • $ vi ~/.gitconfig • [core] editor =
subl -n -w Sublime Text
amend
amend • Altera último commit • Para pequenos fixes •
Inserir arquivo esquecido • Não gera um commit desnecessário Mantendo o log limpo
amend • $ git commit --amend • $ git push
-f Comandos
conflitos
conflitos • Instale o Xcode pela Mac App Store •
$ git config --global merge.tool opendiff • $ git config --global diff.tool opendiff FileMerge no OS X
conflitos FileMerge no OS X
atalhos
atalhos •http://loopinfinito.com.br/2012/12/13/ atalhos-do-git/ •http://d.pr/2VMU Atalhos úteis