1

I need to unstage all staged files which I added by "git add ." what is the actual command to do this with out loosing any of my code updates of those added files all together?

Screen Shot

PRANAV
  • 1,009
  • 5
  • 16
  • 36
  • Did you by any chance consider looking at any of the potential duplicates that the ask a question dialog almost certainly showed when you asked this? – Liam Jul 24 '20 at 08:48
  • Not sure why the question was downvoted. The question is clear and well-formulated. If the reason is that it's a possible duplicate then just vote for close instead of downvote. – Just Shadow Jul 24 '20 at 08:57
  • 3
    @JustShadow My reasons for downvoting: 1) The Q is badly formatted; it uses image instead of text; 2) There was no attempt to investigate and find a solution, no attempt even to search. – phd Jul 24 '20 at 09:02

1 Answers1

6

To undo an add use a git reset .

This will unstage all the files in the current folder.

Diogo Santos
  • 780
  • 4
  • 17