githubESCREVENDOCÓDIGO
COMPARTILHANDOCONHECIMENTO
Os CODIGOs DE TODOS
MEUSCODIGOs OUOSSEUS
são
https://github.com/rails/rails
social networking para
PROGRAMADORES
https://github.com/documentcloud/
backbone
social networking para
PROGRAMADORES
https://github.com/antirez/redis
social networking para
PROGRAMADORES
https://github.com/joyent/node
social networking para
PROGRAMADORES
social networking para
PROGRAMADORES
a URL do repositOrio
ParacomeCar
copiar
até sem usuario do github
clonando um
REPOSITORIO
$ git clone <url>
>>gitclonegit://github.com/rbsdev/dojo-rbs-be.git
clonando um
REPOSITORIO
vocêteráumclonedorepositóriooriginal
comtodoohistóricodesdeoprimeirocommit!
esseéoequivalenteasefazerum‘svncheckout’.
clonando um
REPOSITORIO
$ cd dojo-rbs-be
$ git branch -a
clonando um
REPOSITORIO
Oasteriscoindicaemqualbranchvocêestá.
(osoutrosbrancheseunãomexeria,elesservemparapuxarnovasatualizaçõesdorepositóriooriginal)
clonando um
REPOSITORIO
NOSSO WORK BRANCH
depois
criar
criando um
BRANCH
1ºcriarumnovobranch
podeserqualquernome
(eusemprecrioumchamado'working')
$git checkout -b
working
>>gitcheckout-bworking
criando um
BRANCH
NOSSAS ALTERACOES
QUETAL
fazer
fazendo nossas
ALTERACOES
vocêpodefazerasloucurasquequiser
(editaralgunsarquivos)
$git status
fazendo nossas
ALTERACOES
arquivosquejáexistiamnorepositórioequevocêmexeu,aparecemcomo'modified',ou'deleted'.
Sevocêcrioualgumaarquivonovo,eleapareceem'Untrackedfiles'.
fazendo nossas
ALTERACOES
ADICIONAR AO REPOSITORIO
ANTESDECOMITAR
precisa
adicionando nossas
ALTERACOES
precisaadicionaraorepositórioantesdedarcommit
assimcomovocêprecisariafazer'svnadd'
$git add <nome>
adicionando nossas
ALTERACOES
COMMITAR
AGORA
só
comitando nossas
ALTERACOES
gitcommitfuncionaparecidocomsvncommit
-aadicionaautomaticamentetodoarquivoquefoimodificado
-mcolocamensagensdecommit
$git commit -a
-m <mensagem>
comitando nossas
ALTERACOES
MERGE COM O MASTER
FAZER
o
merge das nossas
ALTERACOES
'working'e'master'temcomoancestralcomumo'master'
vamosjogarasalteraçõesnomaster
$git merge <nome>
merge das nossas
ALTERACOES
PARA O GITHUB
EMPURRANDO
de volta
empurrando nossas
ALTERACOES
gitpushempurraasmodificaçõesdevolta
(sevocêtiverpermissãodeescritanele,claro)
$git push
empurrando nossas
ALTERACOES
empurrando nossas
ALTERACOES
O GITHUB
PIRANDO
com
pirando com
GITHUB
distribuído
feliz
flexível {8 18
TRABALHAR
às
podenãosermelhor
there’s no place
like HOME
qual é sua
HORA
CRIATIVA?
+
pirando com
GITHUB
blog no GITHUB
pirando com
GITHUB
gamefication no
GITHUB
pirando com
GITHUBpeer review no
GITHUB
pirando com
GITHUB
githubESCREVENDOCÓDIGO
COMPARTILHANDOCONHECIMENTO
@helmedeiros
@rafael_sps

Github - Escrevendo código e compartilhando conhecimento