From: Yves Orton Date: Sun, 21 Dec 2008 19:09:18 +0000 (+0100) Subject: add a comment about git clean to the perlrepository.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b0d365353ceae5c23a4b57375afb739159cefdfc;p=p5sagit%2Fp5-mst-13.2.git add a comment about git clean to the perlrepository.pod --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index 0ba315d..946bb55 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -338,3 +338,19 @@ If you want to delete your temporary branch, you may do so with: If you are sure you want to delete it, run 'git branch -D experimental'. % git branch -D experimental Deleted branch experimental. + +=head1 CLEANING A WORKING DIRECTORY + +The command C can with varying arguments be used as a replacement for make-clean. + +To reset your working directory to a pristine condition you can do: + + git clean -dxf + +However, be aware this will delete ALL untracked content. You can use + + git clean -Xf + +to remove all ignored untracked files, such as build and test byproduct, but leave any +manually created files alone. +