-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
61 lines (61 loc) · 1.5 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
[alias]
ap = add -p
st = status
di = diff
out = diff --cached --submodule
in = fetch --dry-run
ff = pull --ff-only
ci = commit
fixup = "!git log --oneline | fzf --layout=reverse --ansi | cut -d ' ' -f1 | xargs git commit --fixup"
br = branch
bra = branch -a
co = checkout
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cs %cr) %C(bold blue)<%an>%Creset' --abbrev-commit
unstage = reset HEAD
squash = rebase -i --autosquash
actions = "gh browse -n | xargs -I {} open '{}/actions'"
repo = !"gh repo view --web"
pr = !"gh pr view --web"
prs = !"gh pr list --web"
issues = !"gh issue list --web"
root = rev-parse --show-toplevel
close-branch = git-close-branch
reset-dir = clean -d -f -x
meld = git-meld
jira-branch = "!jira list -q 'status not IN (closed) AND project = SAJARI AND assignee = currentUser()' | fzf | cut -d ':' -f1 | xargs git checkout -b"
[branch]
autosetupmerge = true
[color]
diff = auto
status = auto
branch = auto
ui = auto
[core]
excludesfile = ~/.gitignore
filemode = true
[diff]
compactionHeuristic = true
noprefix = true
submodule = log
[help]
autocorrect = 1
[include]
path = .gitconfig.local
[pull]
ff = only
[push]
default = tracking
autoSetupRemote = true
[remote]
prune = true
[fetch]
prune = true
[credential]
helper = osxkeychain
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true