Files
pj0631-zhiwei/gitconfig.example
2026-05-13 10:28:52 +08:00

26 lines
859 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================================
# 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