what are staged changes in git and how do i undo it code example
Example 1: git discard staged changes
git reset HEAD
git checkout .
Example 2: git check staged changes
git diff --cached
git reset HEAD
git checkout .
git diff --cached