Remove all files for git commit? -


possible duplicate:
undo “git add”?

i made mistake of running:

git add . 

which added important things such .bashrc. though run:

git rm . 

when run:

git push project master 

everything still added. i've reinstalled git, still pestered this. solution found start on , remove files commit. there other things remove files commit?

you can use git reset unstage changes, or git reset --hard head~ blow away recent commit (careful one, not keep changes around.)

see http://git-scm.com/docs/git-reset


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -