Undo git add –all [duplicate]

It has already been answered several times:

You can use git reset. This will ‘unstage’ all the files you’ve
added after your last commit.

If you want to unstage only some files, use git reset -- <file 1>
<file 2> <file n>
.

Also it’s possible to unstage some of the changes in files by using
git reset -p.

See

  • How to undo ‘git add’ before commit?
  • How can you undo the last git add?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)