Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. ##conceitos
  2. #commit
  3. codigo ---- *commit* ----> repositorio local ---- *push* ----> repositorio remoto (origin)
  4.  
  5. #update
  6. origin ---- *pull* ----> código
  7.  
  8.  
  9. #baixar um projeto novo
  10. git clone <url>
  11.  
  12. #adicionar novos arquivos no projeto (colocar arquivos em staging)
  13. git add .
  14.  
  15. #commitar (localmente)
  16. git commit -m "Mensagem de commit"
  17.  
  18. #commitar (remotamente)
  19. git push origin <nome do branch>
  20.  
  21. #listar alterações
  22. git log
  23.  
  24. # listar branches
  25. git branch
  26.  
  27. --------------------------------- GIT FLOW -------------------------------------
  28. 1 - baixar o branch develop
  29.  
  30. 2 - criar um branch novo a partir do develop e alterar o local para ele
  31. git branch <nome do branch>
  32. git checkout <nome do branch>
  33.  
  34. 3 - trabalhar normalmente. Se houver novos arquivos, usar "git add ."
  35.  
  36. 4 - voltar ao branch develop
  37. git branch develop
  38.  
  39. 5 - fazer o merge do branch criado com o develop
  40. git merge <nome do branch>
  41.  
  42. 6 - deletar o branch
  43. git branch -d <nome do branch>
  44.  
  45. --- quando fechar a versao
  46. git checkout master
  47. git merge develop
  48. git push origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement