Your SlideShare is downloading. ×
Github
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Github

1,883
views

Published on

Apresentação sobre github onde se encontram conceitos e comandos básicos.

Apresentação sobre github onde se encontram conceitos e comandos básicos.


0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,883
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. GithubRômulo Machado 42
  • 2. Conteúdo● O que é Git? O que é Github?● “Being Social”● Configurando o Git● Administrando repositórios 42
  • 3. Você sabe pra que serve o github? 42
  • 4. Você sabe pra que serve o github?Vamo ver a palestraque nóis descobre, abestado! 42
  • 5. 42
  • 6. 42
  • 7. 42
  • 8. “Being Social”● Siga seus amigos 42
  • 9. “Being Social”● Acompanhe o desenvolvimento de projetos 42
  • 10. “Being Social”● Contribua com o desenvolvimento de projetos 42
  • 11. “Being Social”● Junte os amigos e codifique junto 42
  • 12. Configurando o Git● Baixar e Instalar o Git $ sudo apt-get install git-core 42
  • 13. Configurando o Git● Gerando chave RSA [1]$ cd ~/.ssh$ lsid_rsa id_rsa.pub know_hosts$ mkdir key_backup$ cp id_rsa* key_backup$ rm id_rsa 42
  • 14. Configurando o Git● Gerando chave RSA [2]$ ssh-keygen -t rsa seu@email.comGenerating public/private rsa key pair.Enter file in which to save the key(~/.ssh/id_rsa): <aperte enter>Enter passphrase: <aperte enter>Enter same passphrase again: <aperte enter> 42
  • 15. Configurando o Git● Adicionando chave RSA ao seu Github [1]~/.ssh $ cat id_rsa.pubssh-rsa <MINHA CHAVE>romulo.machado5@gmail.com 42
  • 16. Configurando o Git● Adicionando chave RSA ao seu Github [2] No github, vá em Account Settings > SSH Public Keys > Add another public key 42
  • 17. Configurando o Git● Testando se está tudo ok! [1]$ ssh git@github.comThe authenticity of host github.com(207.97.227.239) cant be established.RSA key fingerprint is …Are you sure you want to continueconnecting (yes/no)? <digite yes> 42
  • 18. Configurando o Git● Testando se está tudo ok! [2]PTY allocation request failed on channel 0Hi username! You sucessfully authenticated,but Github does not provide shell access.Connection to github.com closed. 42
  • 19. Funcionou, companheiro! Issaê! 42
  • 20. Configurando o Git● Configurando usuário$ git config --global user.name “Seu Nome”$ git config --global user.email “seu@email” 42
  • 21. Administrando repositórios● Criando um repositório 42
  • 22. Administrando repositórios 42
  • 23. Difícil, né, gente?! 42
  • 24. Adicionando código$ mkdir ~/Hello-World$ cd ~/Hello-World$ git initInitialized empty Git repository in ~/Hello-World/.git/$ touch README 42
  • 25. git status 42
  • 26. $ git status# On branch master# Initial commit# Untracked files:# (use “git add <file> … “ to include what will be commited)## READMEnothing added to commit but untracked files present 42
  • 27. git add 42
  • 28. $ git add READMEPasta de trabalho “Staging” git add 42
  • 29. git commit 42
  • 30. $ git commit README -m “first commit” “Staging” Repositório Local git commit 42
  • 31. git remote 42
  • 32. $ git remote add origingit@github.com:username/Hello-World.git 42
  • 33. git push 42
  • 34. $ git push origin master RepositórioRepositório Local Remoto git push 42
  • 35. 42
  • 36. Pasta de trabalho “Staging” git add git commit Repositório Repositório Local Remoto git push 42
  • 37. Conseguindo ajudahttp://google.com/http://help.github.com/http://book.git-scm.com/http://nathanj.github.com/gitguide/ 42
  • 38. Dúvidas? 42
  • 39. Obrigado! 42
  • 40. Contatohttp://romulomachado.posterous.com/ http://github.com/romulomachado @romulomachado_ rcorreamachado@gmail.com Esta palestra estará disponível em: http://slideshare.net/romulomachado 42
  • 41. Imagens e Referênciashttp://bloggarcia.files.wordpress.com/2010/08/tiririca.jpghttp://www.quites.com.br/wp-content/uploads/2010/12/500px-Git-logo_svg.pnghttp://blog.upverter.com/wp-content/uploads/2011/03/github_logo.pnghttp://help.github.com/images/bootcamp/bootcamp_4_follow.jpghttp://help.github.com/images/bootcamp/bootcamp_4_watch.jpghttp://help.github.com/images/bootcamp/bootcamp_4_pull_requests.jpghttp://help.github.com/images/bootcamp/bootcamp_4_org.jpghttp://help.github.com/images/bootcamp/bootcamp_1_ssh.jpghttp://blogdofavre.ig.com.br/wp-content/uploads/2009/11/Lula_positivo.jpghttp://help.github.com/images/bootcamp/bootcamp_2_newrepo.jpghttp://help.github.com/images/bootcamp/bootcamp_2_repoinfo.jpghttp://g1.globo.com/VCnoG1/foto/0,,18316871-EX,00.jpghttp://help.github.com/images/bootcamp/bootcamp_2_updatedreadme.jpghttp://www.cs.bris.ac.uk/admissions/schools/Seminars/Images/C3PO.jpghttp://farm4.static.flickr.com/3073/2522402972_df135592e9_o_d.jpghttp://help.github.com/ 42

×