Setting commit staging # add file to staging area git add <file> # remove file from staging area git reset <file> # restore file (reset unstaged changes) git restore <file> # restore staged changes (reset to last commit) git restore --staged <file>