We can undo git add before commit with the following command ..
Which will remove it from the current index (the “about to be committed” list) without changing anything else.
We can also use
without any file name to unstage all due changes. This can come in handy when there are too many files to be listed one by one in a reasonable amount of time.