Prévia do material em texto
Controle de Versão e Repositórios de Software Colaborativo INF1028 – Projeto e Construção de Software Alessandro Garcia and Daniel Coutinho Slides: Adaptado do material por Caio Barbosa Atividades de Desenvolvimento 3 Atividades de Desenvolvimento 4 Atividades de Desenvolvimento 5 Versionamento 6 Controle de Versão 7 R$ 10.000 Controle de Versão 8 R$ 10.000 Controle de Versão 9 R$ 10.000 Controle de Versão 10 R$ 10.000 Controle de Versão 11 R$ 10.000 -R$ 1.000 Controle de Versão 12 R$ 10.000 -R$ 1.000 -R$ 2.000 Controle de Versão 13 R$ 10.000 -R$ 1.000 -R$ 2.000 -R$ 10.000 Controle de Versão 14 R$ 10.000 Controle de Versão 15 +R$ 9.000 -R$ 1.000 Controle de Versão 16 +R$ 7.000 -R$ 1.000 -R$ 2.000 Controle de Versão 17 +R$ 7.000 -R$ 1.000 -R$ 2.000 -R$ 10.000 Controle de Versão 18 VCS Centralizado x Distribuído 19 Exemplo 20 Diretório de Trabalho Stage Area Repositório Local Exemplo 21 Diretório de Trabalho Stage Area Repositório Local Exemplo 22 +R$ 10.000 Exemplo 23 +R$ 10.000 +R$ 10.000 Exemplo 24 -R$ 1.000 +R$ 10.000 add +R$ 10.000 Exemplo 25 -R$ 1.000 +R$ 10.000 +R$ 9.000 add commit +R$ 10.000 Exemplo 26 -R$ 1.000 +R$ 10.000 +R$ 9.000 add commit push +R$ 9.000 Exemplo 27 add commit push +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Exemplo 28 +R$ 10.000 +R$ 9.000 add commit push pull +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Exemplo 29 +R$ 10.000 +R$ 9.000 add commit push add pull -R$ 2.000 +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Exemplo 30 +R$ 10.000 add commit push add commit +R$ 10.000 +R$ 9.000 -R$ 2.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 +R$ 8.000 Exemplo 31 -R$ 2.000 +R$ 10.000 +R$ 8.000 +R$ 9.000 add commit push add commit push merge conflict +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Exemplo 32 -R$ 2.000 +R$ 10.000 +R$ 8.000 +R$ 9.000 add commit push add commit push merge conflict +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Exemplo 33 +R$ 9.000 +R$ 9.000 add commit push add commit push pull +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Exemplo 34 +R$ 9.000 +R$ 7.000 add commit push add commit push pull -R$ 2.000 +R$ 7.000 +R$ 10.000 -R$ 1.000 +R$ 9.000 +R$ 9.000 Git 35 Comandos Git 36 Instalação 37 https://git-scm.com/downloads https://git-scm.com/downloads Git Terminal 38 Git Config 39 Git Status 40 Git Add 41 Git Add 42 Git Add 43 Git Add 44 Git Add 45 Git Remove 46 Git Remove 47 Git Commit 48 Git Commit 49 Git Commit – Amend 50 Git Push 51 Git Pull 52 Git Clone 53 +R$ 10.000 clone Git Clone 54 +R$ 10.000 clone +R$ 10.000 55 Tutoriais Online 56 ● Tutorial Git Immersion ○ https://gitimmersion.com/index.html ● Git – Guia Prático ○ https://rogerdudler.github.io/git-guide/index.pt_BR. html ● W3Schools – Git ○ https://www.w3schools.com/git/git_intro.asp?r emote=github https://gitimmersion.com/index.html https://rogerdudler.github.io/git-guide/index.pt_BR.html https://rogerdudler.github.io/git-guide/index.pt_BR.html https://www.w3schools.com/git/git_intro.asp?remote=github https://www.w3schools.com/git/git_intro.asp?remote=github How does git work? 57 Merge 58 Merge 59 Merge 60 Rebase 61 Merge vs Rebase 62 A A C C A1 A1 Rebase 63 Rebase - Squash 64 Rebase - Cherry Pick 65 Recursos extra ► Merge x Rebase – https://www.atlassian.com/br/git/tutorials/merging-vs-reb asing ► The Ultimate Guide to Git Merge and Git Rebase – https://www.freecodecamp.org/news/the-ultimate-guide-t o-git-merge-and-git-rebase/ ► The Definitive Git Rebase Guide – https://medium.com/@dirk.avery/the-definitive-git-rebase- guide-dbd7717f9437 66 https://www.atlassian.com/br/git/tutorials/merging-vs-rebasing https://www.atlassian.com/br/git/tutorials/merging-vs-rebasing https://www.freecodecamp.org/news/the-ultimate-guide-to-git-merge-and-git-rebase/ https://www.freecodecamp.org/news/the-ultimate-guide-to-git-merge-and-git-rebase/ https://medium.com/@dirk.avery/the-definitive-git-rebase-guide-dbd7717f9437 https://medium.com/@dirk.avery/the-definitive-git-rebase-guide-dbd7717f9437 Controle de Versão e Repositórios de Software Colaborativo INF1028 – Projeto e Construção de Software Alessandro Garcia and Daniel Coutinho Slides: Adaptado do material por Caio Barbosa