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-1.0.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_smart_clone-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file git_smart_clone-1.0.0.tar.gz.

File metadata

  • Download URL: git_smart_clone-1.0.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for git_smart_clone-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cbd5cef95b5b10c8481d1362de45aeff1dc1be5a9682c51e8be62518923542b4
MD5 1964c4f3049da9343100663871b16161
BLAKE2b-256 0e5cf5fd772518f2aec22e3659d2235514133fb82e796dae1784c9e29779df63

See more details on using hashes here.

File details

Details for the file git_smart_clone-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: git_smart_clone-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for git_smart_clone-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a85e79aabb2ab353c488c1a61226e7c2b19c51d9c09a8577e81c8d5750b8d0a
MD5 35e5e53fcbf73dc66fcf7461df9318ce
BLAKE2b-256 35adc0d66db8c504bbae879cad1ce46c785fb5a29f09028168011827a42dcdbc

See more details on using hashes here.

Supported by

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