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)

As of version 0.6, QuickClone stores a history of previously cloned repositories instead of just one. You can specify which repository's path to print by specifying its index in QuickClone's history:

cd $(qkln -LZ 1) # to clone the second item

If the --last-clones-index/-Z flag is set to -1, then the list of previously stored repositories is printed.

qkln -LZ -1

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

Uploaded Source

Built Distribution

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

quickclone-0.6.0-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quickclone-0.6.0.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for quickclone-0.6.0.tar.gz
Algorithm Hash digest
SHA256 9b89dfad35005df7c91391b8b701e43c087405718e3e504e12c768453e97338e
MD5 b306ceb0e8a75559cc0361d21c1d793d
BLAKE2b-256 6999ac2a5e6c35886d76bfa6d30e9c5ac195b8fc601e4786d3edf4b176cc3b43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quickclone-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for quickclone-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42f5803a2ae86f4e8a40d1490ee298c6592a204da875a1aacfb2299e8aa13ab8
MD5 a8cfce2a8c8e14f11cbfe33e126546fa
BLAKE2b-256 1fe38aa1fc421b898f5a4215fb274534feb0b0a5efd4bd95962b2bea91f11c16

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