Skip to main content

Command line utility for quickly cloning remote SCM repositories as succintly as possible.

Project description

QuickClone

Command line utility for quickly cloning remote SCM repositories as succintly as possible.

This project is a prime example of spending 24 hours to save 2 seconds.

Notes

Currently, only git is supported. I might add mercurial and then subversion later.

Installation

From source:

git clone https://github.com/RenoirTan/QuickClone.git
cd QuickClone
pip install .

From PYPI:

pip install quickclone

Both ways should install qkln and quickclone to PATH, meaning you don't have to call quickclone using python -m quickclone. qkln and quickclone are both entry points to the same main function, so you can call either command.

Configuration

You can configure QuickClone by editing ~/.config/quickclone.toml.

Examples

qkln RenoirTan/QuickClone

If options.local.remotes_dir is defined, QuickClone will clone the repo into a folder in that directory. For example, if options.local.remotes_dir is defined as ~/Code/remote, the repo will be cloned to ~/Code/remote/github.com/RenoirTan/QuickClone.

You can also override options.local.remotes_dir by specifying the destination path or adding the -Id flag to the command.

qkln RenoirTan/QuickClone ~/Desktop/destination
qkln RenoirTan/QuickClone -Id

In the latter example, QuickClone will ignore options.local.remotes_dir and clone to ./QuickClone.

After cloning the remote repository, QuickClone will save where the repository was cloned to locally in a cache file. You can then use this command to see where the last repository was cloned to:

qkln -L

and then cd into that directory:

cd $(qkln -L)

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

quickclone-0.5.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

quickclone-0.5.0-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file quickclone-0.5.0.tar.gz.

File metadata

  • Download URL: quickclone-0.5.0.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for quickclone-0.5.0.tar.gz
Algorithm Hash digest
SHA256 04b69d2b30e0cb14376c80dc3b0a6ea6463f2c6a592907bd82a32e35fe81792c
MD5 9ffd03b368be1ba686258930e58155f7
BLAKE2b-256 15b36bee7432033a1ef25cfad4adf54e0ec7a44d490c0c2e1e6ce61c57f82ccd

See more details on using hashes here.

File details

Details for the file quickclone-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: quickclone-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for quickclone-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a65047b93819eefd35a5eab80271673cdefa85b9fb28a81ae4805cba9a3ffb26
MD5 545d51e1b8eb6d8c908f206b1d6c1345
BLAKE2b-256 4b904fd7a4c6e072cb26dd30942075c84f5585db4b9bffb31252fe196510b0c8

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