Posted about 9 years ago. Visible to the public.

Git: Diff staged changes

Saying git diff only shows unstaged changes against HEAD (or any hash or branch you supplied) but leaves out files you already staged for the next commit.

To diff your added changes, say:

Copy
git diff --cached

Effectively, this gives you the changes you will commit when you run git commit without the -a switch.

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for old versions of Ruby on Rails (3.2 and 2.3).

Owner of this card:

Avatar
Arne Hartherz
Last edit:
almost 9 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 short-lived cookies to improve usability.
Accept or learn more