Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 263 Bytes

git-staging.md

File metadata and controls

15 lines (11 loc) · 263 Bytes

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>