mirror of
https://github.com/jbranchaud/til
synced 2026-01-08 01:28:02 +00:00
Add Clone A Repo Locally From .git as a git til
This commit is contained in:
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