git reset
git reset
git remove added file before commit
# git add error file
$ git add src/add_file_name.js
# git remove added file before commit
$ git reset src/add_file_name.js
https://stackoverflow.com/questions/348170/how-do-i-undo-git-add-before-commit
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/11587731.html
未经授权禁止转载,违者必究!