Skip to main content

A wrapper for "git clone" that keeps git repo directories organized

Project description

Refclone

refclone is a wrapper for git clone command, that helps keeping cloned git repos organized.

Installation

pip3 install --user git+https://alcm-b@bitbucket.org/alcm-b/refclone.git

Usage

refclone.py --repohome=/home/username/ref https:/gitserver.example.com/user/project

You'll probably want to keep the same repohome directory for all git projects you clone. This can be achieved by creating this pair of aliases in ~/.bashrc:

alias refclone='refclone --repohome=/home/username/ref'
alias cdref='cd /home/username/ref'

After that, you can start using refclone like this:

refclone https://gitserver.example.com/user/project
cdref

Description

refclone 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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

refclone-0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

refclone-0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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