-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
74 lines (74 loc) · 1.97 KB
/
gitconfig
File metadata and controls
74 lines (74 loc) · 1.97 KB
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
[user]
email = ark@recursive.games
name = Ark
[alias]
ignored = ls-files --others -i --exclude-standard
ls = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --graph --pretty=format:'%Cred%h%Creset %ad%Cred%d -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --numstat --date=short
la = "!git config -l | grep alias | cut -c 7-"
news = log -p HEAD@{1}..HEAD@{0}
rh = reset --hard
rs1 = reset --soft HEAD~1
forcepull = !git fetch --all && git reset --hard origin/$(git branch --show-current)
ignore=!echo "$2" >>.gitignore
co = checkout
diffword = diff --color-words
purge = clean -fX
ctags = !.git/hooks/ctags
# delete branches which have been merged to the current branch
cleanup = "!git branch --merged | grep -v '*' | grep -v '(master|main)' | (xargs -n 1 git branch -d 2>/dev/null || echo 'no branches to clean up')"
summary = !~/.git-stat-sum.sh \"$@\"
[log]
decorate = full
[push]
default = current
[pull]
rebase = true
[color]
# turn on color
ui = auto
[color "branch"]
#color branches
current = green bold
local = green
remote = red
[color "diff"]
#color diff output
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
#color the sections in status
added = green
changed = yellow
untracked = cyan
[color "decorate"]
#color the log command when using the --decorate flag
branch = green bold
remoteBranch = red
stash = yellow bold
HEAD = red bold
[branch]
autosetuprebase = always
[core]
excludesfile = ~/.gitignore
editor = vim
[init]
templatedir = ~/.git_template
[github]
user = realark
[magithub]
cache = always
[submodule]
recurse = true
[merge]
conflictStyle = diff3
[fetch]
all = true
prune = true
pruneTags = true
recurseSubmodules = true
# path specific overrides
[includeIf "gitdir:~/braintrust/"]
path = ~/braintrust/.gitconfig-braintrust