how to merge all staged changes in git code example Example: git check staged changes git diff --cached