Thursday, January 17, 2013

Stashing your changes


Stashing is a great way to pause what you’re currently working on and come back to it later. For example, if you working on that awesome, brand new feature but someone just found a bug that you need to fix. Add your changes to the index using
git add .
Or add individual files to the index, your pick. Stash your changes away with:
git stash
And boom! You’re back to your original working state. Got that bug fixed? Bring your work back with:
git stash apply
 
  You might have stashed more than one, now you want to get the last one.

   git stash pop

   






No comments:

Post a Comment