Skip to content

Very simple utility to manage your git identities.

License

Notifications You must be signed in to change notification settings

mrexodia/GitIdentityManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitIdentityManager

Very simple utility to manage your git identities.

git-identity

Installation

Compile the solution (or download a release) and put git-identity.exe in your path.

git-identity.json

You should create a file name git-identity.json next to git-identity.exe that contains your identity (or any other git config). The only required fields are user.name and user.email.

[
    {
        "user.name": "John Doe",
        "user.email": "john.doe@personal.space",
        "user.signingkey": "12345566",
        "commit.gpgsign": "true",
        "tag.gpgsign": "true"
    },
    {
        "user.name": "John Doe",
        "user.email": "jdoe@office.corp",
        "user.signingkey": "",
        "commit.gpgsign": "false",
        "tag.gpgsign": "false"
    }
]

You can now run git identity to change your identity in a local repository.

Git hooks

It is recommended to set up a global pre-commit hook template. A sample hook is provided (.git-templates directory in this repository) that checks your identity before committing. See this post for more details.

Credits

Icon: http://www.iconarchive.com/show/pretty-office-2-icons-by-custom-icon-design/man-icon.html

About

Very simple utility to manage your git identities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published