jasimmk / githerd

githerd is a command line tool that allows for bulk execution of Git commands in a workspace. It supports initializing a new workspace, showing the contents of a workspace, and running bulk Git commands with arguments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Githerd

An application for managing multiple git repositories at once.

Pre requisit

Below are the pre requisites for using githerd:

  • posix shell (sh)
  • git binary

Installation

There are two ways to install githerd, either from source or from binary. Staight forward way is to download the binary from the releases page.

From source

go install github.com/jasimmk/githerd/cmd/githerd

Commands

All the commands are listed in the documentation page.

Usage

Create a workspace

githerd workspace -w test_workspace init ~/repos

Run commands in all the repos

githerd run -w test_workspace  "git status"

More commands and details are listed in the documentation page.

Set config

Create a file ~/.githerd/config.yaml with the following contents in case you doesn't want to use PR creation or mirror functionality:

---

if you want to use PR creation or mirror functionality, you need to add the following to the config file:

---
profiles:
  - name: github-profile
    api_type: github # github/bitbucket/gitlab
    ssh_key: <keyfile>
    token: <token>

Licenses are listed in the LICENSE file. Credits and inspirations are listed in the CREDITS file.

About

githerd is a command line tool that allows for bulk execution of Git commands in a workspace. It supports initializing a new workspace, showing the contents of a workspace, and running bulk Git commands with arguments.

License:MIT License


Languages

Language:Go 98.0%Language:Makefile 2.0%