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

Workshop Git

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Workshop Git

Avatar for Er Galvão Abbott

Er Galvão Abbott

November 09, 2023
Tweet

More Decks by Er Galvão Abbott

Other Decks in Technology

Transcript

  1. CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott -

    11/9/23 - 1 / 16 galvao.eti.br v 0.1.0 - 2023-11-09 +
  2. Atua há 30 anos no Mercado de TI: Programador (>

    25), Professor / Palestrante (> 20) e Consultor (> 25) Engenheiro de Software Sênior / Tech Lead Professor Convidado (Especialista) de Pós-Graduação (PR e SC) Diretor, ConFLOSS, NodeConBR e PHP Conference Brasil Evangelista e Contribuidor para a Linguagem PHP Evangelista e Contribuidor para o Laminas Project Primeiro Brasileiro a se tornar Postman Supernova Presidente da ABRAPHP – Associação Brasileira de Profissionais PHP Apaixonado por Backend, APIs, Qualidade, Segurança e Software Livre galvao.eti.br galvao.eti.br Meu nome é Galvão CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 11/09/2023 – v0.2.0 – Slide 2 / 16
  3. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 3 / 16 Diretório de Trabalho Repositório
  4. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 4 / 16 Diretório de Trabalho Repositório
  5. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 5 / 16 Diretório de Trabalho Repositório
  6. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 6 / 16 Diretório de Trabalho Repositório
  7. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 7 / 16 Diretório de Trabalho Repositório
  8. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 8 / 16 Diretório de Trabalho Repositório
  9. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 9 / 16 Diretório de Trabalho Repositório Diretório de Trabalho Diretório de Trabalho
  10. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 10 / 16 git config [--global ] user.name=“Zé da Silva” git config [--global ] [email protected] ssh-keygen -t ed25519 -C "[email protected]" #ou ssh-keygen -t rsa -b 4096 -C "[email protected]" https://bit.ly/galvao-git-key
  11. ssh-add https://bit.ly/galvao-ssh-add → Settings → SSH and GPG Keys →

    New SSH Key Abrir o arquivo .pub (~/.ssh/id_zezinho.pub) Selecionar tudo (CTRL + A), Copiar (CTRL + C) Colar na caixa de texto do Github. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 11/9/23 - 11 / 16
  12. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 12 / 16 cd /caminho/até/onde/residirá/workdir [mkdir && ]cd workdir git init → Cria repositório git remote add origin [email protected]:galvao-eti/workshop-git-tdl23 https://bit.ly/galvao-git-0
  13. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 13 / 16 cd /caminho/até/onde/residirá/workdir git clone [email protected]:galvao-eti/workshop-git-tdl23 [workshop-git] https://bit.ly/galvao-git-1
  14. galvao.eti.br CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott

    - 11/9/23 - 15 / 16 git pull git switch dev && git switch -c nome-da branch &&\ git push -u origin # Ou git switch nome-da-branch git add [.|arquivos,etc…] git commit -m “Mensagem” git push
  15. galvao.eti.br Muito Obrigado! CC Attribution-ShareAlike 3.0 Unported License by Er

    Galvão Abbott - 11/9/23 - 16 / 16 Dúvidas, Críticas, Elogios, etc…? ‘bora conversar!