Skip to content

uRadical/gitorgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitorgs

This tool makes working with different GitHub organizations easier. It allows you to setup a git configuration per organisation containing the ssh key, email address and gpg signing key to use for the organisation.

Using this tool you can setup a structure like this. Your global .gitconfig will have the default settings. You can
override these settings per organisation with a .gitconfig in the organisation root folder and adding the appropriate includeIf in yor global .gitconfig.

~/
├── .gitconfig
└── code/
     ├── org1/
     │    ├── .gitconfig
     │    ├── repo1/
     │    │    └── .git
     │    └── repo2
     │         └── .git
     │
     └── org2/
          ├── .gitconfig
          ├── repo1/
          │    └── .git
          └── repo2/
               └── .git

Installation

Via go install

 go install uradical.io/go/gitorg@latest

Usage

  1. Navigate to the directory you would like to use as the root of your organisation.
  2. run gitorgs
  3. update ~/.gitconfig with the includeIf that was output from gitorgs command
  4. clone the repos belonging to this organisation

To set your GPG signing key you will need to run gpg --list-keys and copy/paste the key you wish to use.

About

Generate gitconfig per org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages