mirror of
https://github.com/jbranchaud/til
synced 2026-01-20 07:28:02 +00:00
Add Clone A Repo Locally From .git as a git til
This commit is contained in:
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
For a steady stream of TILs from a variety of rocketeers, checkout
|
For a steady stream of TILs from a variety of rocketeers, checkout
|
||||||
[til.hashrocket.com](https://til.hashrocket.com/).
|
[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)
|
- [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 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)
|
- [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)
|
- [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)
|
- [Determine The Hash Id For A Blob](git/determine-the-hash-id-for-a-blob.md)
|
||||||
- [Diffing With Patience](git/diffing-with-patience.md)
|
- [Diffing With Patience](git/diffing-with-patience.md)
|
||||||
|
|||||||
11
git/clone-a-repo-locally-from-git.md
Normal file
11
git/clone-a-repo-locally-from-git.md
Normal 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.
|
||||||
Reference in New Issue
Block a user