Quantcast
Viewing latest article 30
Browse Latest Browse All 42

Answer by Elvis Ciotti for How do I discard unstaged changes in Git?

git clean -df

Cleans the working tree by recursively removing files that are not under version control, starting from the current directory.

-d: Remove untracked directories in addition to untracked files

-f: Force (might be not necessary depending on clean.requireForce setting)

Run git help clean to see the manual


Viewing latest article 30
Browse Latest Browse All 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>