Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 710 Bytes

File metadata and controls

27 lines (21 loc) · 710 Bytes

Switch easily your git user

This powershell script provides you the possibility to easily change your git user. For example you have git user for our work and for some private work.

Here you can define in the config.json file your profiles

{
    "profiles": [
        {
            "profilekind" : "private",
            "name" : "name of user",
            "mail" : "email-address"
        },
        {
            "profilekind" : "work",
            "name" : "name of user",
            "mail" : "email-address"
        }
    ]
}

To use the this script you can call the following command in your powershell:

.\gitProfileSwitch-script.ps1 -profilekind "work"