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.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for git_smart_clone-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f5d832db2afd9041d2adac90a395d0ace83bd86eb804a3334a13c962471197 |
|
MD5 | 35066c8928acfd1da8904c0a07dbd85e |
|
BLAKE2b-256 | 36a193357eebb0a2b8e6252c67735aeef7f1b8f76599755fd558802ca6e272c6 |