Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
C O M E Ç A N D O C O M
Slide 2
Slide 2 text
Carlos Alexandro Becker Software Engineer @ ContaAzul OpenSource guy Blogs at carlosbecker.com Git user since 2010
Slide 3
Slide 3 text
C O M E Ç A N D O C O M
Slide 4
Slide 4 text
POR QUE USAR GIT?
Slide 5
Slide 5 text
HISTÓRIA
Slide 6
Slide 6 text
EM 2005…
Slide 7
Slide 7 text
• Linux vs CVS/SVN/BitLocker • Patches por todos os lados • Time distribuído • Desenvolvimento não linear • VCS's Lentos
Slide 8
Slide 8 text
POUQUÍSSIMA GENTE SE IMPORTA…
Slide 9
Slide 9 text
JÁ EM 2008…
Slide 10
Slide 10 text
No content
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
VANTAGENS
Slide 13
Slide 13 text
•Rápido •Distribuído •Customizável
Slide 14
Slide 14 text
•Light branches •Code Review •Tests, Coverage e etc
Slide 15
Slide 15 text
No content
Slide 16
Slide 16 text
GIT VS GITHUB Distributed Version Control System Web-based Git Hosting Service
Slide 17
Slide 17 text
GIT VS SVN Nearly all operations are local Still working………………
Slide 18
Slide 18 text
http://goo.gl/VerooZ
Slide 19
Slide 19 text
CHECKOUT CLONE &
Slide 20
Slide 20 text
UPDATE PULL &
Slide 21
Slide 21 text
ADD ADD &
Slide 22
Slide 22 text
COMMIT PUSH &
Slide 23
Slide 23 text
$ SVN COMMIT
Slide 24
Slide 24 text
$ GIT COMMIT && GIT PUSH
Slide 25
Slide 25 text
LOG LOG DIFF DIFF STATUS STATUS BLAME BLAME &
Slide 26
Slide 26 text
MERGE REBASE ARCHIVE MV RM GREP RESET FETCH …
Slide 27
Slide 27 text
DAILY WORKFLOW
Slide 28
Slide 28 text
• Criar/Obter/Atualizar Repositório • Criar branch • Alterações + Commits • Sincronizar com o Repositorio Remoto • Criar e mergear Pull Request
Slide 29
Slide 29 text
$ mkdir repo && cd $_ $ git init
Slide 30
Slide 30 text
$ git clone url $ cd repo
Slide 31
Slide 31 text
$ git checkout master $ git pull origin master
Slide 32
Slide 32 text
$ git checkout -b feature-xyz
Slide 33
Slide 33 text
$ git add changed-file.js $ git commit -m ‘changed a file’
Slide 34
Slide 34 text
$ git push origin feature-xyz
Slide 35
Slide 35 text
No content
Slide 36
Slide 36 text
No content
Slide 37
Slide 37 text
No content
Slide 38
Slide 38 text
No content
Slide 39
Slide 39 text
$ git checkout master $ git pull origin master
Slide 40
Slide 40 text
$ echo "done"
Slide 41
Slide 41 text
No content
Slide 42
Slide 42 text
PERGUNTAS?