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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gimmetool-0.1.15.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.15.tar.gz
Algorithm Hash digest
SHA256 dda8177fceb260d2444c9a7a84c00f03ccb27f3853d32bbf331053f1b87a6717
MD5 2d10b166fffe1358e183dbd58e9c4e74
BLAKE2b-256 a40ea298946a06392e369fff049a3e4b8117db99f6f1c2bfb6b6240eb6afd0b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gimmetool-0.1.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 e9afa95362e2f762d11b3b1a99cfcfb47b224a617c04d3be79aa3141d7e0e5e0
MD5 ed8d54b926654f1bf74347728220e794
BLAKE2b-256 5893f88ba85d188e0e2f9c8f704dcfc408729b8750e7a15a6634063c75bf71f9

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