Posted almost 9 years ago. Visible to the public.

Git: Stash unstaged changes

This will stash all modifications that you did not git add:

Copy
git stash -k

Note that newly created (and non-added) files will remain in your working directory unless you also use the -u switch.

Copy
git stash -k -u

Also, your working directory must be clean (i.e. all changes need to be added) when you git stash pop later on.

Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Arne Hartherz
Last edit:
about 5 years ago
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Arne Hartherz to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more