Skip to content

Instantly share code, notes, and snippets.

@dantunes
dantunes / gist:2027467
Created March 13, 2012 07:41
Git: git add [quick man]
$ git add . # add to index only files created or modified and not those deleted
$ git add -u # add to index only files modified or deleted and not those created
$ git add -A # do both operation at once, add to index all files
@dantunes
dantunes / gist:2366856
Created April 12, 2012 12:11
Undo a git add - remove files staged for a git commit
#Unstage a single file from the "about to be commited"
git reset filename.txt
#Unstage a "git add ."
git reset