I modified some code files and
git add git commit. And then, I found some of the modifications were wrong. So how can I reset them in git?
If it only concerns your most recent commit, git reset HEAD^ might be what you're looking for. It allows to remove certain files from your latest unpushed commit.
Check out this link: http://www.lowlevelmanager.com/2012/04/remove-file-from-most-recent-git-commit.html