1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-07 09:08:01 +00:00

Add Clone A Repo Locally From .git as a git til

This commit is contained in:
jbranchaud
2017-09-14 16:02:36 -05:00
parent 2559e44291
commit cdc89c20e0
2 changed files with 13 additions and 1 deletions

View File

@@ -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)

View File

@@ -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.