Rodrigo Branas – @rodrigobranas - http://www.agilecode.com.br
#4 - Git - Stash
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
http://www.youtube.com/rodrigobranas
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.
git checkout -b feature4
echo h > h.txt
git add -A
git status
git stash save "h.txt"
git status
git stash list
git stash apply stash@{0}
git stash list
git stash drop stash@{0}
git stash save "h.txt"
git status
git stash pop
git stash list
git stash save "h.txt"
git stash branch feature5
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

#4 - Git - Stash