Rajanikant Hawaldar
How to remove local (untracked) files from the current Git working tree

How to remove local (untracked) files from the current Git working tree

By Rajanikant Hawaldar in Tools on Oct 10 2020
  • Pranam Bhat
    May, 2021 27

    If you want to see which files will be deleted you can use the -n option before you run the actual command: git clean -nThen when you are comfortable (because it will delete the files for real!) use the -f option: git clean -fTo remove directories, run git clean -f -d or git clean -fd To remove ignored files, run git clean -f -X or git clean -fX To remove ignored and non-ignored files, run git clean -f -x or git clean -fx

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS