Skip to content
/ hit Public

A tool for managing multiple git repositories

Notifications You must be signed in to change notification settings

dfithian/hit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hit

Almost everyone I know stores their git repositories in a single folder on their local machine.

hit is a multi-repo-agnostic version of git, which will use its working directory to figure out how many git repositories are directly under it. Invoke it like you would git, and it will invoke the correct version of git under the hood. This means it can do things like:

  • Ensuring all your branches have the same name: hit checkout -b <my-branch>
  • Listing files: hit ls-files
  • Checking the status of a few repositories in a project: hit backend status

Quick start

curl -sSL https://get.haskellstack.org/ | sh
git clone https://github.com/dfithian/hit.git
cd hit
stack install # and add ~/.local/bin to your $PATH
hit ls-files

That's it! Running hit in any directory will discover subdirectory git repositories.

Projects

In order to manage groups of projects together, create a ~/.config/hit/config file with the following schema:

fullstack:
  home: ~/work/git
  dirs:
    - frontend-repo
    - backend-repo

Now you can use hit on the project named fullstack from anywhere on your machine:

hit fullstack status

Supported commands

Anything that works with git works with hit. That said, these are the list of tested commands.

  • ls-files
  • status
  • diff
  • commit
  • checkout
  • branch
  • pull
  • push

About

A tool for managing multiple git repositories

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published