git command: undo all modified working dir changes including new files

799

git command use to remove all modified working dir changes:

git commands

given below two commands use for revert modified file and remove untrack file:

  • revert modified file :  git checkout -f 
  • remove untrack  file:  git clean -fd

for more:

Basic Git commands

LEAVE A REPLY

Please enter your comment!
Please enter your name here