Reset/Restore All subdirectories of Git Last updated on Sep 22, 2021 1 min read git clean -xfdf -- . git checkout {HEAD OR BRANCH} -- . Tan Shuai Engineer of Decentralized Technologies My research & development interests include artificial intelligence, blockchain and peer-to-peer streaming.