Slide 1

Slide 1 text

Controle de versões com Git O básico e essencial do controle de versão mais utilizado no mundo.

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Giovanni Pires da Silva Desenvolvedor de Software linktr.ee/giovannipds

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

https://brasil.campus-party.org/

Slide 6

Slide 6 text

https://www.youtube.com/watch?v=CkUdhyuRHws

Slide 7

Slide 7 text

https://speakerdeck.com/giovannipds/stop-ignoring-git

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Instalação

Slide 14

Slide 14 text

https://git-scm.com/

Slide 15

Slide 15 text

Configuração

Slide 16

Slide 16 text

Configuração git config --global user.name “Giovanni Pires da Silva” git config --global user.email “[email protected]

Slide 17

Slide 17 text

Início

Slide 18

Slide 18 text

Início git init ou git clone ENDEREÇO

Slide 19

Slide 19 text

Documentação

Slide 20

Slide 20 text

https://git-scm.com/docs

Slide 21

Slide 21 text

https://rogerdudler.github.io/git-guide/index.pt_BR.html

Slide 22

Slide 22 text

git e git help

Slide 23

Slide 23 text

Trabalhando

Slide 24

Slide 24 text

Status git status

Slide 25

Slide 25 text

Adicionando git add NOME git add NOME NOME git add * git add *.html git add .

Slide 26

Slide 26 text

Fluxo de Trabalho

Slide 27

Slide 27 text

Commitando git commit git commit --message “MENSAGEM” git commit -m “MENSAGEM” gt commit -am “MENSAGEM”

Slide 28

Slide 28 text

Retirando git reset git reset ARQUIVO

Slide 29

Slide 29 text

Ciclo de Vida

Slide 30

Slide 30 text

Diff git diff

Slide 31

Slide 31 text

Log git log git log --abbrev-commit git log --pretty=oneline

Slide 32

Slide 32 text

Compartilhando

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Remote git remote add NOME ENDEREÇO git remote add origin ENDEREÇO git remote set-url NOME ENDEREÇO git remote remove NOME

Slide 35

Slide 35 text

git push git push --set-upstream REMOTO BRANCH git push -u REMOTO BRANCH Enviando

Slide 36

Slide 36 text

git fetch Atualizando

Slide 37

Slide 37 text

git pull git pull REMOTO BRANCH Baixando (ou aplicando)

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Ramificando

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

git branch git branch NOME git checkout -b NOME Criando Branches

Slide 42

Slide 42 text

git checkout NOME git checkout master git checkout COMMIT_HASH Alternando entre Branches

Slide 43

Slide 43 text

git branch -d NOME Deletando Branches

Slide 44

Slide 44 text

git push origin BRANCH Enviando Branches

Slide 45

Slide 45 text

git merge BRANCH Mesclando Branches

Slide 46

Slide 46 text

Gource

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Thanks

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

Extras

Slide 51

Slide 51 text

git mv ARQUIVO NOVO_NOME Mantendo o histórico ao renomear arquivos

Slide 52

Slide 52 text

https://resume.github.io/?giovannipds

Slide 53

Slide 53 text

https://ohshitgit.com/pt_BR

Slide 54

Slide 54 text

https://git-lfs.github.com/

Slide 55

Slide 55 text

https://gitlens.amod.io/

Slide 56

Slide 56 text

https://www.conventionalcommits.org/pt-br/v1.0.0-beta.4/

Slide 57

Slide 57 text

Git Flow

Slide 58

Slide 58 text

https://nvie.com/posts/a-successful-git-branching-model/

Slide 59

Slide 59 text

https://danielkummer.github.io/git-flow-cheatsheet/index.pt_BR.html

Slide 60

Slide 60 text

https://guides.github.com/introduction/flow/

Slide 61

Slide 61 text

Extras... - Forks - Pull Requests - Issues - gitk - Livro Pro Git - Semantic Versioning - .gitkeep e .gitignore - Gource - Cheatsheet - GitHub Desktop - VS Code Integration - Akita Videos - O Futuro do Git - Curso Willian Justen Free - Curso em Video Guanabara - Alura Webserie - Loiane - rebase - stash - cherry pick - git immersion, git it - submodules - show - restore - Learning Visually