A simple git extension that clones a git directory to subfolder based on the git url
Project description
git-smart-clone
A simple git extension that clones a git directory to sub folder based on the git url.
Installation
To install use pipx:
pipx install git-smart-clone
Usage
By default this will clone a git repo into your ~/src
directory in the format hostname/owner/repo name. This can be overridden with the environmental variable: GIT_SMART_CLONE_BASE_PATH
.
So this command
git smart-clone https://github.com/sam-phinizy/git-smart-clone
would clone this repo to this location on your computer:
~/src/github.com/sam-phinizy/git-smart-clone
.
Note: Any flags passed to the command will be passed through to git
.
License
MIT LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file git-smart-clone-0.1.2.tar.gz
.
File metadata
- Download URL: git-smart-clone-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.8.2 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321cb3f8716a8b6f3285491dd54c1359654df00baa2451582f4ac3128e1351dd |
|
MD5 | 87c0a9fc219600d1c6a196fea084c1d2 |
|
BLAKE2b-256 | 60eeb4083272060631e91ef1f9fb5e2ae07d8e67aaa8c201bc445d87fceb8e2f |
File details
Details for the file git_smart_clone-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: git_smart_clone-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.8.2 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0364c9aad11ac54b10cff484490fd4ebbf0e5397e3c0a27e7a77de2f2f78fc7e |
|
MD5 | 5f70a8d1bab72a7b3d24ffad9941f397 |
|
BLAKE2b-256 | 634bbfdba3c49825254ec327a7e1c0ae2034becd3ceca1c89357b39c850a160b |