Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

#4 - Git - Stash

814 views

Published on

Stash com Git.

Published in: Software
  • Be the first to comment

#4 - Git - Stash

  1. 1. Rodrigo Branas – @rodrigobranas - http://www.agilecode.com.br #4 - Git - Stash
  2. 2. Rodrigo Branas rodrigo.branas@agilecode.com.br http://www.agilecode.com.br • Arquiteto de Software na Gennera • Professor na Agile Code • Autor na Java Magazine e PacktPub • Palestrante
  3. 3. http://www.youtube.com/rodrigobranas
  4. 4. Stash é uma área, onde é possível armazenar o código existente na staging area, sem a necessidade de realizar um commit, permitindo mudar de branch de forma limpa e organizada.
  5. 5. git checkout -b feature4
  6. 6. echo h > h.txt git add -A git status
  7. 7. git stash save "h.txt"
  8. 8. git status
  9. 9. git stash list
  10. 10. git stash apply stash@{0}
  11. 11. git stash list
  12. 12. git stash drop stash@{0}
  13. 13. git stash save "h.txt"
  14. 14. git status
  15. 15. git stash pop
  16. 16. git stash list
  17. 17. git stash save "h.txt"
  18. 18. git stash branch feature5
  19. 19. Rodrigo Branas Site: http://www.agilecode.com.br Twitter: @rodrigobranas Facebook: http://www.facebook.com/canalrodrigobranas SlideShare: http://www.slideshare.com/rodrigobranas YouTube: http://www.youtube.com/rodrigobranas LinkedIn: http://br.linkedin.com/in/rodrigobranas +Plus: https://plus.google.com/+RodrigoBranas GitHub: http://www.github.com/rodrigobranas

×