changes not staged for commit git code example
Example 1: git show staged files
git diff --name-only --cached
Example 2: unstage staged files git
git reset HEAD file_path
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.