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

  • Git restore file date creation after clone on windows
  • How to delete my repository on Git using command line?
  • using git to clone a CodePlex project that uses SVN
  • Git rebasing not working correctly?
  • SSH Agent Forwarding with Ansible
  • Can't git push to Azure anymore
  • git clean -fdx
    
    git clean -df
    

    but it isn’t worked.

  • Public repository allows others to edit my code?
  • Recover overwritten file with eclipse git
  • Connecting git to github on windows 7 without bash
  • Sharing a git repo between mac and windows vm without line ending file changes
  • What's the best way to update a branch to the latest master while still keeping all the changes that were previously committed?
  • Formatting commit messages
  • 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.