how to stage the files to be commited on terminal code example Example: how to unstage a commit git reset HEAD~