0
Q:

how to undo git clean -fd command

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
9
git reset --hard
3
git clean -fdx
0
git reset --hard <your commit hash key>
0
git clean -fdxn
0

New to Communities?

Join the community