Changes not staged for commit code example
Example 1: How do I show the changes which have been staged
git diff --staged
Example 2: git check staged changes
git diff --cached
Example 3: Changes not staged for commit: modified: ../package.json
// The reason it is not staging gulpfile.js and package.json
// is because they were not in the directory (or below it)
// when you did git add ., which only adds files in the
// current directory and below. If you cd .. and do a git add .,
// they will be added.