git check if there are staged changes
# bash check whether there are any staged changes in git
git diff --cached --quiet && echo nostaged || echo somestaged
git check if there are staged changes
# bash check whether there are any staged changes in git
git diff --cached --quiet && echo nostaged || echo somestaged
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us