Refclone
refclone is a wrapper for git clone command that keeps cloned git
repositories organized.
Installation
pip3 install --user git+https://alcm-b@bitbucket.org/alcm-b/refclone.git
Usage
refclone.py https://gitserver.example.com/user/project
The above will clone the repository into a default location, ~/ref and create
subdirectories, so the full path will be
~/ref/gitserver.example.com/user/project
refclone.py --repohome=/home/username/ref https://gitserver.example.com/user/project
You may use other default directory by supplying --repohome argument. To keep
the same repohome directory for all git projects you clone, set this pair of
aliases in ~/.bashrc:
alias refclone='refclone --repohome=/home/username/projects'
alias cdref='cd /home/username/projects'
After that, you can start using refclone like this:
refclone https://gitserver.example.com/user/project
cdref
cd gitserver.example.com/user/project
# start exploring the code
Description
refclone ensures that all git repositories I clone are located in the same
place, nicely organized by server url, user and project name. It also shaves
off a couple of commands I have to run each time I want to take a look at the
source code of one more open source project.
Effectively, this utility is a shortcut for these two UNIX shell commands:
mkdir -p "/<repohome>/<server-url>/<username>/<project-name>/"
git clone <git-url> /<repohome>/<server-url/<username>/<project-name>/
, where <repohome> is provided in command line option --repohome.
Metadata
Release files for refclone 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| refclone-0.6.tar.gz | 6.2 kB | Without provenance | Details for refclone-0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| refclone-0.6-py3-none-any.whl | Python 3 | none | any | Details for refclone-0.6-py3-none-any.whl |
Total release size: 10.5 kB
Release files / refclone-0.6.tar.gz
| Download URL | refclone-0.6.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f618e6fc3b7aa7a1062094854b095b05c999c0de846a74218f6b802717dc47fa
|
|
BLAKE2b-256 checksum How to use checksums |
be84fa117352056ed831ab0df8725aa438df1396469e53f09d4ef25588e69e13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / refclone-0.6-py3-none-any.whl
| Download URL | refclone-0.6-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
237290ceac48bc7688b1634873c3f3bfc31a31d9746c6af84d5611f454c17d42
|
|
BLAKE2b-256 checksum How to use checksums |
fe0256846319dc4f302be82b2e838fb2bbd50628009ed37a173fef21649a2452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for refclone 0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.