How do you add all changes from a subdirectory?
git add –all :/ or git add -A :/
How do you remove a file from the staging area, but leave the working directory unchanged?
git reset file
How do you remove a file with Git?
git rm file
How do you stop tracking a file without removing it?
**git rm –cached **file
How do you undo the last 2 commits and changes?
git reset –hard HEAD^^
How do you unstage a file from the index?
**git reset **file
How do you reset the staging area to match the most recent commit, but leaving the working directory unchanged?
git reset