How to remove all added files in GIT

By mistake I used git add . so all files are added in staring area. I want to remove all those files from staring area.

I tried

  • 'cannot open git-upload-pack' error in Eclipse when cloning or pushing git repository
  • How to apply git diff --binary patches without git installed?
  • Data integrity in Git?
  • Multiple gitolite users on one machine
  • Is there a way to ask git diff to show the method name instead of the class name?
  • Git: commit before merge?
  • git clean -fdx
    git clean -df

    but it isn’t worked.

  • Git submodule init async
  • Why git can't do hard/soft resets by path?
  • Git Bash gets stuck on diff / log, spontaneously repeats same command over and over
  • how to view the committed files those you have not pushed yet
  • Revert to pre-git v1.7.8 git submodule behavior with submodule filesystem locations
  • Can't authenticate to GitHub from Git Extensions?
  • 2 Solutions collect form web for “How to remove all added files in GIT”

    you need use the git reset --mixed.
    The --mixed if for clearing the stage/cache/index area.

    If that is the case, then git reset HEAD will do the job

    Git Baby is a git and github fan, let's start git clone.