[include] path = ~/.gitconfig.platform path = ~/.gitconfig.private [init] defaultBranch = master [merge] summary = true tool = vimdiff [core] excludesfile = ~/.gitignore hookspath = ~/.git_hooks preloadindex = true fscache = true editor = vim [push] default = upstream [pull] # Use new merge-ort strategy. twohead = ort # rebase when pulling instead of doing a default merge. rebase = true [fetch] # Run 'git remote prune' after fetching. prune = true [diff] algorithm = patience [color] diff = auto status = auto branch = auto interactive = auto ui = true pager = true [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = blue frag = magenta old = red new = green [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f required = true process = git-lfs filter-process [alias] start = !git init && git commit --allow-empty -m \"Initial commit\" #################### # Logging #################### # Note: There are two timestamp values in the log. The first (%ad) is the author's timestamp # and the second (%ci, %cs, %cr, etc) is the committer's timestamp. This lets you see the # original commit date and the last time the commit sha changed from a history modification # operation, e.g. modifying a commit in a rebase. # Note: If you want a grey that's slightly darker than %C(white dim) then try `%C(black bold)`. # Preferred style: # * Good for history with merge commits. # * Dates are YYYY-MM-DD format. # * Can also use: --date=relative and replace %ci with %cr # --date=iso and replace %ci with %ci lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an %Creset%C(yellow bold)| %Creset%C(white bold)%s %C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' # Good for flat history: # lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an %Creset%C(yellow bold)| %Creset%C(white bold)%<(78,trunc)%s %C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' # Alternative styles: # name | msg #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%an %C(white dim)| %Creset%C(white bold)%s %Creset%C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%an %C(yellow bold)| %Creset%C(white bold)%s %Creset%C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' # name > msg #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%an %C(yellow bold)>%Creset %C(white bold)%s %Creset%C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %C(white dim)%an %Creset%C(yellow bold)> %Creset%C(white bold)%s %Creset%C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an %Creset%C(yellow bold)> %Creset%C(white bold)%s %Creset%C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' # msg #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset<%an> %Creset%C(white bold)%s %Creset%C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' # [name] msg #lg = log --graph --date=short --pretty=format:'%C(yellow bold)%h %Creset%C(white dim)[%Creset%an%Creset%C(white dim)] %Creset%C(white bold)%s %C(white dim)[%ad|%cs] %Creset%C(yellow bold)%D %Creset%C(cyan bold)%<(10,trunc)%GK%Creset' [rerere] enabled = true [gc] auto = 0 [advice] detachedHead = false