git-author-switcher
Version, currently 0.2.04 versions
- 0.3.0latestOct 25, 2017
- 0.2.0not indexedOct 25, 2017
- 0.1.1not indexedOct 25, 2017
- 0.1.0not indexedOct 25, 2017
github.com/nwtgck/git-author-switcher
Author switcher for git
Nothing has been indexed for 0.2.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
git-author-switcher:
github: nwtgck/git-author-switcher
version: ~> 0.2.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Author switcher for git
chauthor (Change Author) is for git users using shared PC with multiple users
Command's side effects
Side effects of this comamnd are only git config user.name ... and git config user.email ...
How to build
Build requirements
- Shards (Dependency manager for the Crystal)
$ cd <this repo>
$ shards build
Authors' information
Put authors' information as $HOME/.git-authors.yaml.
Example of $HOME/.git-authors.yaml
- id : nwtgck
name : Ryo Ota
email: nwtgck@gmail.com
- id : exampleman
name: Example Man
email: test@example.com
- id : nbegin
name: N Begin
email: nbegin@example.com
Example usages
How to change author
$ ./bin/chauthor nwtgck
$ ./bin/chauthor nbegin
or
$ ./bin/chauthor nw
$ ./bin/chauthor nb
(Smart search can solve by first letters nw)
Smart/Safe completion
An error will occur if you type just n like the follwoing.
./bin/chauthor n
Error: Duplicate ids: Ryo Ota and N Begin
This error is for avoiding unexpected config for user.
How to list all author
$ ./bin/chauthor --list
How to unset author name and email in git-config
$ ./bin/chauthor --unset
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Oct 25, 2017
- Commit
7557ece34e2f- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nwtgck/git-author-switcher
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 14, 2026
- Versions
- 4