-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
106 lines (92 loc) · 2.94 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# GIT GLOBAL CONFIGURATION FILE
# [`git-config`](https://git-scm.com/docs/git-config)
#
# NOTE:
# - Use tabs to be consistent with entries added by `git` cli.
# - See `git-config` docs for a comprehensive formatting reference.
# - `git-config` prefers `;` for comment string, I prefer `#` instead.
#
# BINARIES USED:
# - `nvim` for editor
# - `bat` for pager
# - `delta` for pager
# - `delta` for cli diff tool
# - `meld` for gui merge tool?
# - `git-media` to handle large media files
# - `git-lfs` to handle large file storage with pointers
[user]
name = Sri Kadimisetty
email = [email protected]
[init]
# Use `main` over `master`
defaultbranch = main
[core]
editor = nvim
excludesfile = /Users/sri/.gitignore_global
# Text viewer to use for git commands. It can be overridden by setting an
# environment variable on the command line, e.g. `GIT_PAGER=bat git diff`
pager = delta
[push]
# `current` pushes current branch to a remote branch with same name
default = current
[diff]
# `nvimdiff` is gitconfig-speak for `nvim -d`
tool = nvimdiff
[color]
# NOTE: `auto` enables color for output within terminals
ui = auto # default
# Enable color in displaying branch names within terminals
branch = auto
# Enable color for git interactive prompts within terminals
interactive = auto
# Enable color for `git-status` within terminals
status = auto
# Use ANSI escape sequences to color pathnames within terminals
diff = auto
[interactive]
# Display colorized diffs processed with given command in interactive
# commands like `git add --patch`. Default is `disabled`(no filtering).
diffFilter = delta --color-only --features=interactive
[delta]
# side-by-side = true
line-numbers = true
syntax-theme = Dracula
# `n` and `N` to navigate between diff sections
navigate = true
[merge]
# - On merge, use this style to write conflicted hunks to working tree files
# - `diff3` adds `|||||||` and original text before `=======` marker.
# - Other 2 builtin styles are: `merge` and `zdiff3`
conflictstyle = diff3
[diff]
# Style "moved blocks of code" differently from usual removed/added lines
colorMoved = default
[web]
browser = open
[alias]
# Show all tags
tags = tag --list
# Show both remote and local branches
branches = branch --all
# Show remote url after name
remotes = remote --verbose
# Show which commit a change was cherry-picked from
graft = cherry-pick -x
# Show absolute path of top-level directory of the working tree
root = rev-parse --show-toplevel
# `--ff-only`: Only apply remote changes if there is no divergent local
# history
pull = pull --ff-only
# `--ff-only`: Resolve the merge as a fast-forward when possible, and if not,
# refuse to merge and exit with error code.
up = merge --ff-only
# `git-media`
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
# `git-lfs`
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f