Yuchao's Blog

How to undo 'git add'

2019-03-01

Revert staged file in Git

Unstage specific file

1
git reset <file>

Unstage all files

1
git reset

More Information: How to undo ‘git add’ before commit?

Tags: Git
使用支付宝打赏
使用微信打赏

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏

扫描二维码,分享此文章