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
Aprenda git e contribua em projetos Open Source
Search
Guilherme Ferreira
January 29, 2013
Programming
1
170
Aprenda git e contribua em projetos Open Source
Oficina realizada durante a Campus Party 2013
Guilherme Ferreira
January 29, 2013
Tweet
Share
More Decks by Guilherme Ferreira
See All by Guilherme Ferreira
4 atitudes para melhorar a agilidade de uma empresa. Na prática.
guilffer
3
140
Other Decks in Programming
See All in Programming
AHC051解法紹介
eijirou
0
370
『リコリス・リコイル』に学ぶ!! 〜キャリア戦略における計画的偶発性理論と変わる勇気の重要性〜
wanko_it
1
420
PHPUnitの限界をPlaywrightで補完するテストアプローチ
yuzneri
0
400
ワープロって実は計算機で
pepepper
2
1.2k
それ CLI フレームワークがなくてもできるよ / Building CLI Tools Without Frameworks
orgachem
PRO
17
3.8k
Go製CLIツールをnpmで配布するには
syumai
2
1.1k
あのころの iPod を どうにか再生させたい
orumin
2
2.4k
대규모 트래픽을 처리하는 프론트 개발자의 전략
maryang
0
120
0から始めるモジュラーモノリス-クリーンなモノリスを目指して
sushi0120
0
250
Scale out your Claude Code ~自社専用Agentで10xする開発プロセス~
yukukotani
9
1.8k
React は次の10年を生き残れるか:3つのトレンドから考える
oukayuka
41
16k
令和最新版手のひらコンピュータ
koba789
13
7.2k
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Into the Great Unknown - MozCon
thekraken
40
2k
The Pragmatic Product Professional
lauravandoore
36
6.8k
GitHub's CSS Performance
jonrohan
1031
460k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Designing Experiences People Love
moore
142
24k
Navigating Team Friction
lara
188
15k
A Tale of Four Properties
chriscoyier
160
23k
Why Our Code Smells
bkeepers
PRO
337
57k
Designing for humans not robots
tammielis
253
25k
Being A Developer After 40
akosma
90
590k
Transcript
Aprenda git e contribua em projetos Open Source Guilherme Ferreira
Thursday, January 31, 13
? Thursday, January 31, 13
Objetivo ‣ Não vamos codificar ‣ Vamos usar vários comandos
do git ‣ Vamos conhecer como funciona o processo de contribuição no github Thursday, January 31, 13
Antes de qualquer coisa... Thursday, January 31, 13
$ sudo apt-get install git-core curl Instalar git: $ \curl
-L https://get.rvm.io | bash -s stable --ruby Instalar rvm / ruby 1.9.3: Instalações Thursday, January 31, 13
Thursday, January 31, 13
O que é git? ‣ SCM distribuído ‣ Snapshots /
Deltas Thursday, January 31, 13
Github Thursday, January 31, 13
•Social Coding •3.000.000+ Usuários •5.000.000+ Repositórios •Alternativas: Bitbucket, Gitlab... Github
Thursday, January 31, 13
Para que utilizar git/github? ‣ Código Fonte ‣ Blog ‣
Leis ‣ Textos Thursday, January 31, 13
Para que utilizar git/github? ‣ Código Fonte ‣ Blog ‣
Leis ‣ Textos Thursday, January 31, 13
Como funciona? Blob Blob Tree Blob Tree Commit Tag Thursday,
January 31, 13
Como funciona? C1 master HEAD $ git init $ git
commit Thursday, January 31, 13
Como funciona? C1 C2 master HEAD $ git commit Thursday,
January 31, 13
Como funciona? C1 C2 C3 master HEAD $ git commit
Thursday, January 31, 13
Como funciona? C1 C2 C3 master feature HEAD $ git
checkout -b feature Thursday, January 31, 13
Como funciona? C1 C2 C3 master C4 feature HEAD $
git commit Thursday, January 31, 13
Como funciona? C1 C2 C3 C5 master C4 feature HEAD
$ git checkout master $ git commit Thursday, January 31, 13
Como funciona? C1 C2 C3 C5 master C4 feature C6
HEAD $ git checkout feature $ git commit Thursday, January 31, 13
Como funciona? C1 C2 C3 C5 master C4 feature C6
C7 $ git checkout master $ git merge feature HEAD Thursday, January 31, 13
Como funciona? C1 C2 $ git clone C3 C4 C7
C5 C6 Thursday, January 31, 13
Como funciona? C1 C2 $ git clone C3 C4 C7
C5 C6 C1 C2 C3 C4 C7 C5 C6 Thursday, January 31, 13
Como funciona? C1 C2 $ git pull C3 C5 C1
C2 C3 C4 C7 C5 Local Remoto Thursday, January 31, 13
Como funciona? C1 C2 $ git pull C3 C5 C1
C2 C3 C4 C7 C5 Local Remoto C4 C7 Thursday, January 31, 13
Como funciona? C1 C2 $ git push C3 C5 C1
C2 C3 C5 Local Remoto C4 C7 Thursday, January 31, 13
Como funciona? C1 C2 $ git push C3 C5 C1
C2 C3 C4 C7 C5 Local Remoto C4 C7 Thursday, January 31, 13
Porque utilizar? ‣ Fácil ‣ Simples ‣ leve ‣ Muito
Rápido Thursday, January 31, 13
Comandos mais utilizados ‣ $ git init ‣ $ git
add ‣ $ git status ‣ $ git commit ‣ $ git log ‣ $ git checkout ‣ $ git branch ‣ $ git merge ‣ $ git pull ‣ $ git push Thursday, January 31, 13
Como contribuir em projetos ‣ Fork ‣ Clone ‣ Commiting
‣ Push ‣ Pull Request Thursday, January 31, 13
Obrigado! Guilherme Ferreira
[email protected]
Thursday, January 31, 13