Git verifique los cambios escenificados
git diff --cached
Av3
git diff --cached
# bash check whether there are any staged changes in git
git diff --cached --quiet && echo nostaged || echo somestaged