DEV Community

Emmanuel Gautier
Emmanuel Gautier

Posted on • Originally published at emmanuelgautier.com on

Undo a git add

An unwanted " git add " can happen. That's why there is a command to redo this " git add ". Here the command line to perform this action.

git rm --cached <file>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)