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

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -