From cdc89c20e00a4d6e919377a260a2ab08ff6d4094 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 14 Sep 2017 16:02:36 -0500 Subject: [PATCH] Add Clone A Repo Locally From .git as a git til --- README.md | 3 ++- git/clone-a-repo-locally-from-git.md | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 git/clone-a-repo-locally-from-git.md diff --git a/README.md b/README.md index ace61a8..7f36783 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_557 TILs and counting..._ +_558 TILs and counting..._ --- @@ -148,6 +148,7 @@ _557 TILs and counting..._ - [Cherry Pick A Range Of Commits](git/cherry-pick-a-range-of-commits.md) - [Clean Out All Local Branches](git/clean-out-all-local-branches.md) - [Clean Up Old Remote Tracking References](git/clean-up-old-remote-tracking-references.md) +- [Clone A Repo Locally From .git](git/clone-a-repo-locally-from-git.md) - [Delete All Untracked Files](git/delete-all-untracked-files.md) - [Determine The Hash Id For A Blob](git/determine-the-hash-id-for-a-blob.md) - [Diffing With Patience](git/diffing-with-patience.md) diff --git a/git/clone-a-repo-locally-from-git.md b/git/clone-a-repo-locally-from-git.md new file mode 100644 index 0000000..deb302e --- /dev/null +++ b/git/clone-a-repo-locally-from-git.md @@ -0,0 +1,11 @@ +# Clone A Repo Locally From .git + +If you want to get a clean copy of a repository that you have locally, there +is no need to go over the wire cloning it from the remote. You can clone +from a local copy. + +```bash +$ git clone my-repo/.git path/to/fresh-copy +``` + +See `man git-clone` for more details.