xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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


posted @ 2019-09-25 21:43  xgqfrms  阅读(34)  评论(0编辑  收藏  举报