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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for git-smart-clone-0.1.2.tar.gz
Algorithm Hash digest
SHA256 321cb3f8716a8b6f3285491dd54c1359654df00baa2451582f4ac3128e1351dd
MD5 87c0a9fc219600d1c6a196fea084c1d2
BLAKE2b-256 60eeb4083272060631e91ef1f9fb5e2ae07d8e67aaa8c201bc445d87fceb8e2f

See more details on using hashes here.

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

Hashes for git_smart_clone-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0364c9aad11ac54b10cff484490fd4ebbf0e5397e3c0a27e7a77de2f2f78fc7e
MD5 5f70a8d1bab72a7b3d24ffad9941f397
BLAKE2b-256 634bbfdba3c49825254ec327a7e1c0ae2034becd3ceca1c89357b39c850a160b

See more details on using hashes here.

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