From: Siraaj Khandkar Date: Mon, 6 Oct 2014 18:20:07 +0000 (-0400) Subject: Replace 'cp' with 'git clone' X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=fe79085123faf9e524caa33bf00f0024b6589960;p=git-cheat-sheet.git Replace 'cp' with 'git clone' --- diff --git a/README.md b/README.md index d6a1454..3dbce00 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Splitting a repo ##### Remove history of all but select files in cloned repo ```sh -$ cp -Rp old new +$ git clone old new $ cd new $ git clean -dfx $ git gc --aggressive --prune=now