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.)
Comments
Post a Comment