# 本地使用者設定(每台機器各自不同) [user] name = Your Name # 你的名稱,例如 Timmy email = your.name@example.com # 你的 Git email,例如 you@company.com # 若使用 GPG 簽名,可加上以下設定(可選) # [commit] # gpgsign = true # 啟用 GPG 簽章(需要先設定 GPG 金鑰) # 若你使用多帳號,也可以針對特定目錄設定不同 user(進階做法) # [includeIf "gitdir:~/projects/work/"] # path = ~/.gitconfig.work # # [includeIf "gitdir:~/projects/personal/"] # path = ~/.gitconfig.personal