📜  remove undo all modified files git - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:35.482000             🧑  作者: Mango

代码示例1
git reset --hard # removes staged and working directory changes

## !! be very careful with these !!
## you may end up deleting what you don't want to
## read comments and manual.
git clean -f -d # remove untracked
git clean -f -x -d # CAUTION: as above but removes ignored files like config.
git clean -fxd :/ # CAUTION: as above, but cleans untracked and ignored files through the entire repo (without :/, the operation affects only the current directory)