@@ -39,8 +39,9 @@ You'll need the following configuration files. Replace all `PLACE_HOLDER` values
3939# --------------------------------------------------------------------
4040# CONDITIONAL OVERRIDES
4141# These allow you to use different `user.email` based on the URL of
42- # the remote repository.
43- # ====================================================================
42+ # the repository (e.g., work vs. personal, or GitHub vs. GitLab, etc.)
43+ # --------------------------------------------------------------------
44+
4445[includeIf "hasconfig:remote.*.url:**/*github.com/**"]
4546 path = .gitconfig-github
4647
@@ -59,8 +60,7 @@ You'll need the following configuration files. Replace all `PLACE_HOLDER` values
5960# GitHub-specific Git configuration
6061#
6162# To use this example:
62- # 1. Get your unique GitHub commit email:
63- # https://docs.github.com/en/account-and-profile/how-tos/email-preferences/setting-your-commit-email-address
63+ # 1. Get your unique GitHub commit email: https://docs.github.com/en/account-and-profile/how-tos/email-preferences/setting-your-commit-email-address
6464# 2. Copy this file next to your `~/.gitconfig` and replace email below
6565# ====================================================================
6666
@@ -79,8 +79,7 @@ You'll need the following configuration files. Replace all `PLACE_HOLDER` values
7979# GitLab-specific Git configuration
8080#
8181# To use this example:
82- # 1. Get your unique GitLab commit email:
83- # https://docs.gitlab.com/user/profile/#use-an-automatically-generated-private-commit-email
82+ # 1. Get your unique GitLab commit email: https://docs.gitlab.com/user/profile/#use-an-automatically-generated-private-commit-email
8483# 2. Copy this file next to your `~/.gitconfig` and replace email below
8584# ====================================================================
8685
0 commit comments