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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gimmetool-0.1.14.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.14.tar.gz
Algorithm Hash digest
SHA256 598c5b4fc298534b4bdfb1d699234cd7d3cba67509e212e722626ea20ec80239
MD5 291dacc598567a9762568e0cf94bf57d
BLAKE2b-256 590560e606203a5e2fa5abaeb592a075038e7ae166975edda30548d7c27b88ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gimmetool-0.1.14-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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed98278b77ca2743c8b66eba134a952b488cfdb8d0de8aa1f61a8cd5a26eec3
MD5 208a0d21c3be33810ea4bac2be6ec0eb
BLAKE2b-256 c4fe02509f8c950ed6097bde5a76052f12ec61514f6adcec3832f029f70121c9

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