See changes in Git after staging change

On git and want to see the changes on files after you stage it?

git diff --cached file-to-check

Also if you want to see the difference of hte file with repo

git diff HEAD file-to-check

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*