ID juggler for git
- Shell 87.9%
- Makefile 12.1%
| .idgit.example | fix typo | |
| idgit | all non-command output should go to stderr | |
| LICENSE | clearer licensing | |
| Makefile | update makefile | |
| README.md | update readme | |
| wtfpl-badge-1.png | add wtfpl image | |
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