1
0
Fork
You've already forked idgit
0
ID juggler for git
  • Shell 87.9%
  • Makefile 12.1%
2026年07月13日 01:37:22 -05:00
.idgit.example fix typo 2026年07月13日 01:35:18 -05:00
idgit all non-command output should go to stderr 2026年07月12日 17:48:19 -05:00
LICENSE clearer licensing 2026年04月29日 16:32:41 -05:00
Makefile update makefile 2026年04月29日 19:05:59 -05:00
README.md update readme 2026年07月13日 01:37:22 -05:00
wtfpl-badge-1.png add wtfpl image 2026年04月29日 16:34:56 -05:00

idgit

idgit handles a list of git identities and provides shortcuts for setting commonly used ones in a repository's --local to save you the carpal tunnel.

It does not change any configuration on its own, but it prints the commands to do so which can be piped back into your shell.

I wrote this because sometimes I have to use git for uni and I didn't want to keep my Full Government Name in global config.

You can identities by holding them in a bash script in ~/.idgit.

# ID #0: Jonathan Fortnight <admin@awesome.gov>
gitname[0]="Jonathan Fortnight"
gitmail[0]="admin@awesome.gov"
# ID #1: Janice Blowhard <jan@bigcompany.net>
gitname[1]="Janice Blowhard"
gitmail[1]="jan@bigcompany.net"

(see .idgit.example)

Setup

# inspect makefile:
vi Makefile
# install idgit:
make install
# configure idgit:
vi ~/.idgit

Usage

See idgit --help

Example

# Select ID #4, enable signing by default and print to be sure.
(trunk #) ja:~/git/idgit $ idgit 4 | $SHELL
(trunk #) ja:~/git/idgit $ idgit s | $SHELL
(trunk #) ja:~/git/idgit $ idgit p
wizard
large.rat@icloud.com
commit.gpgsign=true

wtfpl