How to fdx with git clean

Hi there.


Today, I would like to introduce a command in Git that will completely revert to the latest version held in git.


If you type the following command, it will completely revert the status to the last commit and delete unnecessary files.


git reset --hard origin/branch name

git clean -fdx


LinkedIn にシェア

  • この記事を書いた人

藤沢瞭介(Ryosuke Hujisawa)



Copyright© , 2021 All Rights Reserved Powered by AFFINGER5.