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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gimmetool-0.1.8.tar.gz
  • Upload date:
  • Size: 9.1 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.8.tar.gz
Algorithm Hash digest
SHA256 9478bb06dc74d387b8b7a692aa07ac82f47d9163ac32b8d31adb339784166946
MD5 7f516eee9e201b9e3f46c18d9a058b0d
BLAKE2b-256 5ded11eeb593501f4c4eae813d61a25ae75921fc3b63d0ef9a86b8376d4306f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gimmetool-0.1.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ae704387556946f7658420afdd4f8a28b313f849e1634bcf3c57b5245fb3cede
MD5 253a5d3ad1a675fe538af68ea6eef2b4
BLAKE2b-256 18ce94674f5293b72577678c52ca69702d1388937095389405be4f7e08d7621a

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