Read more

Git: Stash unstaged changes

Arne Hartherz
November 16, 2010Software engineer at makandra GmbH

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

git stash -k
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

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

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.

Posted by Arne Hartherz to makandra dev (2010-11-16 19:16)