Pro Yearly is on sale from $80 to $50! »

Git & GitHub

Git & GitHub

Um guia básico. Apresentação feita na TechParty da Faccat.

04698e60de9a2485c68dfdbc3d4bb4e3?s=128

CodeHeaven

April 07, 2015
Tweet

Transcript

  1. Git & GitHub Um guia para Marlon Bernardes /marlonbernardes @marlonjb

    Rafael Eyng /rafaeleyng @rafaeleyng
  2. CONTROLE DE VERSÃO Hoje vamos falar de coisa boa

  3. O PROBLEMA

  4. controlou as versões usando o nome do arquivo? V ocê

    já…
  5. controlou as versões usando o nome do arquivo? V ocê

    já… trabalho.zip trabalho2.zip trabalho_versao_final.zip trabalho_versao_final2.zip
  6. quis ver como seu projeto estava alguns dias atrás? V

    ocê já…
  7. perdeu arquivos e não tinha backup? V ocê já…

  8. perdeu arquivos e o backup era muito antigo? V ocê

    já…
  9. quis mudar alguma coisa podendo desfazer se não gostasse do

    resultado? V ocê já…
  10. quis compartilhar seu projeto com outras pessoas? V ocê já…

  11. fez uma cagada no código e precisou desfazer? V ocê

    já…
  12. as SOLUÇÕES

  13. None
  14. a SOLUÇÃO

  15. CONCEITOS alguns

  16. CONCEITOS alguns (é rápido)

  17. COMMIT!

  18. COMMIT! commits

  19. None
  20. None
  21. AVISO! Vamos precisar digitar alguns comandos…

  22. pull rebase reset rm show status tag add branch checkout

    clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta $ git init
  23. pull rebase reset rm show status tag add branch checkout

    clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta $ git status it’s all about
  24. pull rebase reset rm show status tag add branch checkout

    clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta $ git add
  25. pull rebase reset rm show status tag add branch checkout

    clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta $ git commit
  26. pull rebase reset rm show status tag add branch checkout

    clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta $ git log
  27. It’s show time!

  28. pull rebase reset rm show status tag add branch checkout

    clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta tag add branch checkout clone commit diff fetch init log merge push pull rebase re rm show status tag add branch checkout clone commit diff fetch init log merge pu pull rebase reset rm show status tag add branch checkout clone commit diff fetch i log merge push pull rebase reset rm show status tag add branch checkout clo commit diff fetch init log merge push pull rebase reset rm show status tag add bran checkout clone commit diff fetch init log merge push pull rebase reset rm show sta Quer aprender em casa?
  29. https://try.github.io/

  30. Só na linha de comando?

  31. None
  32. None
  33. None
  34. GitHub Desktop

  35. GitHub

  36. Um lugar pra botar seu código

  37. Uma ferramenta de [‘colaboração', ‘distribuição’, ‘discussão’]

  38. Uma rede social para desenvolvedores!

  39. It’s show time!

  40. https://github.com/jquery/jquery

  41. None
  42. None
  43. https://github.com/jquery/jquery/pull/1905

  44. GitHub Secrets

  45. O código fonte do Git é construído usando Git

  46. Recapitulando…

  47. Marlon  Bernardes Rafael  Eyng @marlonjb /marlonbernardes    @rafaeleyng /rafaeleyng marlonjb.cb@gmail.com

    rafaeleyng@gmail.com Obrigado!