26 lines
859 B
Plaintext
26 lines
859 B
Plaintext
# =============================================================================
|
||
# Git 用户配置示例(与「忽略哪些文件」无关;忽略规则见仓库根目录 .gitignore)
|
||
#
|
||
# 用法任选其一:
|
||
# A) 将下面 [user] 等段落合并到你本机的 %USERPROFILE%\.gitconfig(Windows)
|
||
# 或 ~/.gitconfig(Linux / macOS)
|
||
# B) 仅在本仓库生效(写入 .git/config,不随 git push 上传):
|
||
# git config --local user.name "你的名字"
|
||
# git config --local user.email "你的邮箱@example.com"
|
||
# =============================================================================
|
||
|
||
[user]
|
||
name = Your Name
|
||
email = your.email@example.com
|
||
|
||
[init]
|
||
defaultBranch = main
|
||
|
||
# Windows 常用 true,Linux/macOS 常用 input;按团队规范选择
|
||
[core]
|
||
autocrlf = input
|
||
longpaths = true
|
||
|
||
[pull]
|
||
rebase = false
|