how to restore git clean -fd code example Example 1: how to undo git clean -fd command git clean -fdx Example 2: how to undo git clean -fd command git clean -fdxn