delete directory from git staging code example Example: git remove from staging git reset HEAD <file>