https://github.com/maxgio92/git-dclone
git dclone clones a repository building a consistent directory hierarchy
https://github.com/maxgio92/git-dclone
Last synced: 18 days ago
JSON representation
git dclone clones a repository building a consistent directory hierarchy
- Host: GitHub
- URL: https://github.com/maxgio92/git-dclone
- Owner: maxgio92
- License: mpl-2.0
- Created: 2024-06-23T13:49:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T10:12:41.000Z (almost 2 years ago)
- Last Synced: 2025-03-21T03:29:08.858Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-dclone
Clone git repository with consistent directory hierarchy:
* Provider
* Owner
* Repository name
## Usage
```shell
git dclone URL
URL supports SSH and HTTPS scheme.
The SRC_DIR environment variable sets the workspace directory name where repositories should be cloned.
```
### Example
```shell
$ git dclone https://github.com/maxgio92/git-dclone.git
...
$ tree -L 3 src
src
└── github.com
└── maxgio92
└── git-dclone
```
## Install
```shell
git clone https://github.com/maxgio92/git-dclone.git
export PATH=$PATH:~/.git-dclone"
./git-dclone/install.sh
```