Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Aug 032012

How do I diff the changes which have been staged but not committed in Git?


Usually when you have not staged your changes, git diff is what you all need. But when you have staged the changes, then you need to use

git diff --cached

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>