Skip to main content

Git Helper Tool

Project description

Git Grab

Git Helper Tool used to quickly add repo's to the users system for an external source. With not having to worry about were the repo is being stored.

Initial Goals of the project

  • Create a tool to help download git repos
  • Repos are sorted by which site and user they belong to.
code
└── github.com
    └── Boomatang
      ├── dotfiles
      └── git-grab

Installation

To install grab, run this command in your terminal:

git needs to be installed before using git-grab

$ pipx install git-grab

Usage

Overview

grab <url-to-repo>
grab -r <url-to-remote-repo>
grab --help

Configuring

The environment variable GARB_PATH can be set to insure the default local of for storing the repos. At any time the environment variable can be overridden by the -p flag.

Cloning a repo

To cloning a repo can be done using both the ssh or https routes. When cloning, the data is stored in the path defined in GRAB_PATH.

grab <repo route>

To override the path at run time the -p flag can be used.

grab <repo route> -p <some/other/path>

Adding remotes to repos.

The -r flag can be used to say the repo path is a remote of an existing repo.

grab -r <repo route>

This adds the repo route to all cloned repos in the path where the repo name matches. Using the -p flag allows setting the path where to search for repos.

grab -r <repo route> -p <some/other/path>

Warning

All the functions are case-sensitive. This can be problematic when adding remotes to existing cloned repos.

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_grab-0.5.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

git_grab-0.5.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_grab-0.5.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.8-200.fc39.x86_64

File hashes

Hashes for git_grab-0.5.0.tar.gz
Algorithm Hash digest
SHA256 de3fb5733d11dada12e99240299b9bcc9788742bd0ae2a7cd247e63cc55a437e
MD5 86fb032b3831307064b30075a4ca9ff2
BLAKE2b-256 8f97b3f135a6ded3c07e4f76c9e2f22b24fdac0732bda8831647f217796fcace

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_grab-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.8-200.fc39.x86_64

File hashes

Hashes for git_grab-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 511e4204220254aad4237ad1932d2c580a4f33c706f5b7aa6a8c896f0df65cf5
MD5 58a457dc52fc2c156383349074233e99
BLAKE2b-256 daf151ca34afa86e7cba7bc1ebddffba7ade9c766eb4e2ada39b27b47c3a4ebc

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