35

Possible Duplicate:
Undo git add before commit

When i was working on my project I accidently added files using the following command

git add file

I haven't yet run

git commit.

How can I undo or remove these newly added files from the commit?

Please help.

Community
  • 1
  • 1
Surinder ツ
  • 1,778
  • 3
  • 16
  • 27

1 Answers1

47

git reset is a literally "undo" of git add - it removes the changes from staged area.

aragaer
  • 17,238
  • 6
  • 47
  • 49