Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.35 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.35 KB

git-ego

Swap between different users for Git repositories.

Note

This program only affects local Git configurations

Installation

TODO: Write installation instructions here

Usage

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.

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/rocx/git-ego/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Config

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