-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
28 lines (23 loc) · 1.07 KB
/
.gitconfig
File metadata and controls
28 lines (23 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ====================================================================
# Global Git Configuration
#
# To use this example:
# 1. Save this file as ~/.gitconfig (most common location)
# 2. Replace all PLACE_HOLDER values (e.g., YOUR_FULL_NAME)
# 3. Repeat for .gitconfig-github and .gitconfig-gitlab as necessary
# ====================================================================
[user]
# Set your default name for all commits.
name = YOUR_FULL_NAME
# CRITICAL: Prevents accidental exposure of system email if no
# specific email is found in the conditional blocks below.
useConfigOnly = true
# --------------------------------------------------------------------
# CONDITIONAL OVERRIDES
# These allow you to use different `user.email` based on the URL of
# the repository (e.g., work vs. personal, or GitHub vs. GitLab, etc.)
# --------------------------------------------------------------------
[includeIf "hasconfig:remote.*.url:**/*github.com/**"]
path = .gitconfig-github
[includeIf "hasconfig:remote.*.url:**/*gitlab.com/**"]
path = .gitconfig-gitlab