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
git-smart-clone-0.1.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for git_smart_clone-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0364c9aad11ac54b10cff484490fd4ebbf0e5397e3c0a27e7a77de2f2f78fc7e |
|
MD5 | 5f70a8d1bab72a7b3d24ffad9941f397 |
|
BLAKE2b-256 | 634bbfdba3c49825254ec327a7e1c0ae2034becd3ceca1c89357b39c850a160b |