Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Versionando projetos com Git

Versionando projetos com Git

Ronaldo Vieira

December 21, 2018
Tweet

More Decks by Ronaldo Vieira

Other Decks in Programming

Transcript

  1. Criar Criar um um repositório repositório 1. Ir à pasta

    do projeto 2. git init Clonar Clonar um um repositório repositório 1. git clone <url>
  2. init clone add commit push pull checkout branch merge init

    clone add commit push pull checkout branch merge
  3. init clone add commit push pull checkout branch merge status

    reset diff log stash show rebase tag fetch cherry-pick bisect reflog remote mergetool config ... init clone add commit push pull checkout branch merge
  4. Commits bem descritos Commits bem descritos Update link style User

    research showed that many people did not spot links in the copy. This commit updates the link style to the new underlined style which performed better.
  5. Commits bem descritos Commits bem descritos Update link style User

    research showed that many people did not spot links in the copy. This commit updates the link style to the new underlined style which performed better. Título Título Corpo Corpo (why & how) (why & how)
  6. Commits bem descritos Commits bem descritos Update link style User

    research showed that many people did not spot links in the copy. This commit updates the link style to the new underlined style which performed better. Máx. 50 caracteres Máx. 50 caracteres
  7. Commits bem descritos Commits bem descritos Update link style User

    research showed that many people did not spot links in the copy. This commit updates the link style to the new underlined style which performed better.
  8. Commits bem descritos Commits bem descritos Update link style User

    research showed that many people did not spot links in the copy. This commit updates the link style to the new underlined style which performed better.
  9. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes
  10. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes
  11. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal
  12. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal Não fazer ❌ Não fazer ❌
  13. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal Não fazer ❌ Não fazer ❌ Alterar a linha do tempo após push
  14. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal Não fazer ❌ Não fazer ❌ Alterar a linha do tempo após push Armazenar arquivos grandes ou que podem ser gerados
  15. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal Não fazer ❌ Não fazer ❌ Alterar a linha do tempo após push Armazenar arquivos grandes ou que podem ser gerados Armazenar arquivos de configuração
  16. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal Não fazer ❌ Não fazer ❌ Alterar a linha do tempo após push Armazenar arquivos grandes ou que podem ser gerados Armazenar arquivos de configuração Usar reset sem commit ou stash
  17. Fazer ✅ Fazer ✅ Usar branches Excluir branches após merge

    Definir um workflow git add -p Usar stashes Nomear stashes Usar o terminal Não fazer ❌ Não fazer ❌ Alterar a linha do tempo após push Armazenar arquivos grandes ou que podem ser gerados Armazenar arquivos de configuração Usar reset sem commit ou stash Abusar do cherry-pick
  18. Onde saber mais? Onde saber mais? Git Book A successful

    Git branching model Stackoverflow.com
  19. Referências Referências Git Book. https://git-scm.com/book Git for Humans. https://speakerdeck.com/alicebartlett/git-for-humans Commit

    Often, Perfect Later, Publish Once: Git Best Practices. http://sethrobertson.github.com/GitBestPractices/ Git Commit Best Practices. https://github.com/trein/dev-best- practices/wiki/Git-Commit-Best-Practices