github - escrevendo código e compartilhando conhecimento
DESCRIPTION
Escrever e ler fazem tão bem a desenvolvedores quanto a escritores! O github é uma biblioteca divirta-se.TRANSCRIPT
![Page 1: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/1.jpg)
githubESCREVENDO CÓDIGO
COMPARTILHANDO CONHECIMENTO
![Page 2: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/2.jpg)
Os CODIGOs DE TODOS
MEUS CODIGOs OU OS SEUSsão
![Page 3: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/3.jpg)
https://github.com/rails/rails
social networking para
PROGRAMADORES
![Page 4: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/4.jpg)
https://github.com/documentcloud/backbone
social networking para
PROGRAMADORES
![Page 5: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/5.jpg)
https://github.com/antirez/redis
social networking para
PROGRAMADORES
![Page 6: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/6.jpg)
https://github.com/joyent/node
social networking para
PROGRAMADORES
![Page 7: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/7.jpg)
social networking para
PROGRAMADORES
![Page 8: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/8.jpg)
a URL do repositOrio
Para comeCarcopiar
até sem usuario do github
![Page 9: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/9.jpg)
clonando um
REPOSITORIO
![Page 10: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/10.jpg)
$ git clone <url>
>>git clone git://github.com/rbsdev/dojo-rbs-be.git
clonando um
REPOSITORIO
![Page 11: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/11.jpg)
você terá um clone do repositório original com todo o histórico desde o primeiro commit!
esse é o equivalente a se fazer um ‘svn checkout’.
clonando um
REPOSITORIO
![Page 12: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/12.jpg)
$ cd dojo-rbs-be$ git branch -a
clonando um
REPOSITORIO
![Page 13: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/13.jpg)
O asterisco indica em qual branch você está. (os outros branches eu não mexeria, eles servem para puxar novas atualizações do repositório original)
clonando um
REPOSITORIO
![Page 14: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/14.jpg)
NOSSO WORK BRANCH
depoiscriar
![Page 15: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/15.jpg)
criando um
BRANCH
1º criar um novo branch pode ser qualquer nome
(eu sempre crio um chamado 'working')
![Page 16: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/16.jpg)
$git checkout -b working
>> git checkout -b working
criando um
BRANCH
![Page 17: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/17.jpg)
NOSSAS ALTERACOES
QUE TALfazer
![Page 18: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/18.jpg)
fazendo nossas
ALTERACOES
você pode fazer as loucuras que quiser(editar alguns arquivos)
![Page 19: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/19.jpg)
$git status
fazendo nossas
ALTERACOES
![Page 20: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/20.jpg)
arquivos que já existiam no repositório e que você mexeu, aparecem como 'modified', ou 'deleted'. Se você criou alguma arquivo novo, ele aparece em 'Untracked files'.
fazendo nossas
ALTERACOES
![Page 21: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/21.jpg)
ADICIONAR AO REPOSITORIO
ANTES DE COMITARprecisa
![Page 22: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/22.jpg)
adicionando nossas
ALTERACOES
precisa adicionar ao repositório antes de dar commit assim como você precisaria fazer 'svn add'
![Page 23: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/23.jpg)
$git add <nome>
adicionando nossas
ALTERACOES
![Page 24: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/24.jpg)
COMMITAR
AGORAsó
![Page 25: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/25.jpg)
comitando nossas
ALTERACOES
git commit funciona parecido com svn commit -a adiciona automaticamente todo arquivo que foi modificado
-m coloca mensagens de commit
![Page 26: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/26.jpg)
$git commit -a -m <mensagem>
comitando nossas
ALTERACOES
![Page 27: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/27.jpg)
MERGE COM O MASTER
FAZERo
![Page 28: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/28.jpg)
merge das nossas
ALTERACOES
'working' e 'master' tem como ancestral comum o 'master'
vamos jogar as alterações no master
![Page 29: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/29.jpg)
$git merge <nome>
merge das nossas
ALTERACOES
![Page 30: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/30.jpg)
PARA O GITHUB
EMPURRANDOde volta
![Page 31: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/31.jpg)
empurrando nossas
ALTERACOES
git push empurra as modificações de volta(se você tiver permissão de escrita nele, claro)
![Page 32: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/32.jpg)
$git push
empurrando nossas
ALTERACOES
![Page 33: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/33.jpg)
empurrando nossas
ALTERACOES
![Page 34: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/34.jpg)
O GITHUB
PIRANDOcom
![Page 35: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/35.jpg)
pirando com
GITHUB
distribuído
feliz
flexível { 8 18TRABALHAR
àspode não ser melhor
there’s no place like HOME
qual é sua HORA
CRIATIVA?+
![Page 36: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/36.jpg)
pirando com
GITHUBblog no GITHUB
![Page 37: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/37.jpg)
pirando com
GITHUB
gamefication no GITHUB
![Page 38: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/38.jpg)
pirando com
GITHUBpeer review no GITHUB
![Page 39: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/39.jpg)
pirando com
GITHUB
![Page 40: Github - Escrevendo código e compartilhando conhecimento](https://reader033.vdocuments.pub/reader033/viewer/2022050905/549ac639b4795938098b45b3/html5/thumbnails/40.jpg)
githubESCREVENDO CÓDIGO
COMPARTILHANDO CONHECIMENTO@helmedeiros
@ rafael_sps