[core]
filemode = false
[diff]
external =/usr/local/bin/diff-wrapper
renames = true
[branch "devel"]
remote = origin
merge = refs/heads/devel
; include if $GIT_DIR is/path/to/foo/.git
[includeIf "gitdir:/path/to/foo/.git"]
path =/path/to/foo.inc
; include forall repositories inside /path/to/group
[includeIf "gitdir:/path/to/group/"]
path =/path/to/foo.inc
; include forall repositories inside $HOME/to/group
[includeIf "gitdir:~/to/group/"]
path =/path/to/foo.inc
; relative paths are always relative to the including
;file(if the condition is true); their location isnot; affected by the condition
[includeIf "gitdir:/path/to/group/"]
path = foo.inc
; include only if we are in a worktree where foo-branch is; currently checked out
[includeIf "onbranch:foo-branch"]
path = foo.inc
一、前言Git 是一个分布式版本控制软件,最初目的是为更好地管理 Linux 内核开发而设计。很多著名的软件都使用 Git 进行版本控制,其中包括 Linux 内核、X.Org 服务器和 OLPC 内核等项目的开发流程:Git –distributed-is-the-new-centralizedTweak your Git config for multiple user IDs二、背景分析Git 的 git config 命令可以为 Git 设置用户名、邮箱等全局选项和配