Skip to main content

The multi-repo manager

Project description

Gimme: The Multi-Repo Manager

This is a utility designed to help developers quickly hop between and manage the many repositories they keep on their workstations.

The main function of this util is jumping between repos with the base command, gimme [repo], but it also provides a few other simple utils.

checkout gimme -h for more info.

Setup

Out of the box, you'll need to tell gimme where your code lives. For example if your home looks like this:

/Users/bob/code:
  - frontend/
    - .git/
    - src/
    - etc...
  - backend/
    - .git/
    - src/
    - etc...
  - my-site/
    - .git/
    - src/
    - etc...

Then you'd add the code directory:

~$ gimme config add group /Users/bob/code

Then you should be able to hop between any repo under that folder:

~$ gimme front
~/code/frontend$ gimme back
~/code/backend$

Other Tools

There are a few other tricks gimme has up its sleeve to streamline jumps between your most common repos. You can set up favorites, which are prioritized when searching on a keyword, as well as aliases for longer searches.

Favorites

Let's say you have the following repos:

/Users/bob/code/
- jfe/
- jfe-apis/
- libjfe/

Jumping with gimme jfe might result in a jump to a repo you don't actually want to.

~$ gimme jfe
~/code/jfe-apis$ # really? >:(

But, by adding the repo you want as a favorite, gimme will prioritize it.

gimme config add favorite /User/bob/code/jfe

Now, the jump is unambiguous:

~$ gimme jfe
~/code/jfe$ # :D

Aliases

Sometimes, there are repos with longer names that you'd rather not change, but that you'd also rather not type.

/User/bob/code/legacy-backend-2018

You can create an alias that maps a shortcut to a more specific search.

~$ gimme config add alias back2018 legacy-backend-2018

Now, you don't have to type all that specific crap to get to the repo you want, and you don't have to change the name of the directory and eventually forget the name of the remote origin it actually belongs to.

~$ gimme back18
~/code/legacy-backend-2018$ 

Mass Updates

A little tired of having to pull multiple times on a bunch of separate repos? gimme will update the default branch of every repo in your groups!

~$ gimme updates
- Updating 'layout-qualtrics-2018'...done
- Updating 'namespace-provisioning'...done
- Updating 'layout-qualtrics-2017'...done
- Updating 'aws-policies'...done

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

gimmetool-0.1.7.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

gimmetool-0.1.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file gimmetool-0.1.7.tar.gz.

File metadata

  • Download URL: gimmetool-0.1.7.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for gimmetool-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4d9e1589e195ef0a3567cfa9c534aea947441d1715e76562483687ac5a0d744a
MD5 4edeb9943f3471f8cba468a0b20f9037
BLAKE2b-256 816185ffbdeb8b487aff859c10fbc0b25443f413228cc9c81acfcec2121aced3

See more details on using hashes here.

File details

Details for the file gimmetool-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: gimmetool-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for gimmetool-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3bfeeed80ba02e9aeda36e5b35811694375d2e8f3f38f011c8efebdae5bdc5
MD5 42a0c57c6d7636903cd1cf0877631d93
BLAKE2b-256 53ffa10d5ddd26e3c831ca0a4af64b39c125e97577813dda3ea39fc61a4fd433

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