Reset/Restore All subdirectories of Git

git clean -xfdf -- .

git checkout {HEAD OR BRANCH} -- .

Tan Shuai
Tan Shuai
Engineer of Decentralized Technologies

My research & development interests include artificial intelligence, blockchain and peer-to-peer streaming.