Posted over 8 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.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Arne Hartherz
Last edit:
over 4 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