summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <demerphq@dromedary.booking.com>2008-12-21 20:09:18 +0100
committerYves Orton <demerphq@dromedary.booking.com>2008-12-21 20:09:18 +0100
commitb0d365353ceae5c23a4b57375afb739159cefdfc (patch)
tree89b4ff40fac076397661d7c4d90da7472e6523a4
parentca50760a0fcf2bb2d109d77444c282a692deae86 (diff)
downloadperl-b0d365353ceae5c23a4b57375afb739159cefdfc.tar.gz
add a comment about git clean to the perlrepository.pod
-rw-r--r--pod/perlrepository.pod16
1 files changed, 16 insertions, 0 deletions
diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod
index 0ba315d441..946bb55bf4 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<git clean> 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.
+