Skip to main content

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


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)

Uploaded Source

Built Distribution

git_smart_clone-0.1.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page