Files
modules/git-config
Stephen Kirby d7f60d3000 add git-config module (#47)
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
2023-09-28 13:01:52 +03:00
..
2023-09-28 13:01:52 +03:00
2023-09-28 13:01:52 +03:00
2023-09-28 13:01:52 +03:00
2023-09-28 13:01:52 +03:00

display_name, description, icon, maintainer_github, verified, tags
display_name description icon maintainer_github verified tags
Git Config Stores Git configuration from Coder credentials ../.icons/git.svg coder true
helper
git

git-config

Runs a script that updates git credentials in the workspace to match the user's Coder credentials, optionally allowing to the developer to override the defaults.

module "git-config" {
  source = "https://registry.coder.com/modules/git-config"
  agent_id = coder_agent.example.id
}

TODO: Add screenshot

Examples

Allow users to override both username and email

module "git-config" {
  source = "https://registry.coder.com/modules/git-config"
  agent_id = coder_agent.example.id
  allow_email_change = true
}

TODO: Add screenshot

Disallowing users from overriding both username and email

module "git-config" {
  source = "https://registry.coder.com/modules/git-config"
  agent_id = coder_agent.example.id
  allow_username_change = false
  allow_email_change = false
}

TODO: Add screenshot