git_iam
Command line tool for easily switching git authors, remotes, and other configs on shared computers.
Currently in development
References
- Great ruby gem cli guide
- Nice ruby executable resource
- Major props to git pair
- Inspiration from pivotal git scripts
Installation
$ gem install git_iam
Usage
Run via the command line using the command iam.
Set current user name and remote origin url
$ iam [user_name]
Check current user name, email and remote origin url
$ iam who
Reset to global git config values
$ iam reset
Available commands
Find all available commands
$ iam
Find details about a command
$ iam help [command]
TODO
- Create pairing module - consider command
iam also [username] - Add options to
iam [username]commands, such as--nameonlyor--remoteonly. - Create helpers for changing options on remote urls
--branch,--remote, etc. - Create helper for viewing current configs.
- Consider integrating
git-pairfor pairing config. - Implement a
--forceforiam [username]incase the username conflicts with any reserved keywords. - Throw error if
remote.origin.urlnot set.
Contributing
- Fork it ( git shttp://github.com/
/git_iam/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 new Pull Request