Swap between different users for Git repositories.
Note
This program only affects local Git configurations
TODO: Write installation instructions here
TODO: Write usage instructions here
If you have everything organized well enough, one can just use conditional inclusions in their Git configuration. If not, this tool comes in handy. It sure did for my needs.
TODO: Write development instructions here
- Fork it (https://github.com/rocx/git-ego/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Box O'Rocks - creator and maintainer
git-ego
is configured with YAML.
Table names are the keys for the alter ego itself.
john:
user.name: John Doe
user.email: [email protected]
core.sshCommand: ssh -i ~/.ssh/id_jdoe -o 'IdentitiesOnly yes'
rocx:
user.name: Box O'Rocks
user.email: [email protected]
core.sshCommand: ssh -i ~/.ssh/id_rocx -o 'IdentitiesOnly yes'
$ git config --local user.name
John Doe
$ git ego rocx
$ git config --local user.name
Box O'Rocks