# # ~/.gitconfig # User's global Git configuration file # # Credit: # * https://gist.github.com/pksunkara/988716 # # References: # [1] A Git Horror Story: Repository Integrity with Signed Commits # https://mikegerwitz.com/papers/git-horror-story.html # [2] What are the advantages and disadvantages of cryptographically # signing commits and tags in Git? # https://softwareengineering.stackexchange.com/a/212216 # # Aaron LI # [init] defaultBranch = master [core] # Use 'less' as the pager and display tabs of width 8 pager = less -x1,9 -R [user] name = Aaron LI email = aly@aaronly.me signingKey = aly@aaronly.me [push] default = simple [pull] ff = only [commit] template = ~/.gitmessage [tag] # Sign every tag gpgSign = true [diff] # Show space and tabs wsErrorHighlight = all [alias] ref-next = !sh -c 'git log --ancestry-path --format=%H ${1:-HEAD}..master | tail -n 1' - log-next = !git ref-next $1 | xargs git log cp = cherry-pick # Large file storage [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true