This is a CLI Utility which stores configurations according to git remotes. And applies your configurations according to current remotes. This commands automatically detects github, bitbucket and gitlab and applies properties in the repository.
Download CLI according to your platform. And run
gitconfig-provider --help
This will list all available commands.
These are list of commands along with their use cases. To know the inputs and other details about commands please run gitconfig-provider [command] --help
.
-
listProviders
: Lists all providers along with properties we have added using this CLI, -
addProvider
: Adds new provider with empty properties -
addConfig
: Adds properties as key value pair to given git provider. -
deleteConfig
: Deletes property from given git provider. -
reset
: Reset all git providers and properties to the original state. -
apply
: Detects remote from current git repository, for remote detection it prefersorigin
as remote name, if noorigin
found, it prefers first remote fromgit remote -v
command, and applies configuration according to detected remote.