-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig.local
More file actions
23 lines (23 loc) · 892 Bytes
/
gitconfig.local
File metadata and controls
23 lines (23 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[core]
editor = nvim
excludesfile = ~/.gitignore
[init]
templatedir = ~/.git_template
[push]
default = simple
[color]
ui = auto
[alias]
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
co = checkout
st = status
po = "!git push -u origin \"$(git rev-parse --abbrev-ref HEAD)\""
pf = push --force-with-lease
dc = diff --cached
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
this-branch-files-changed = log main..head --reverse --oneline --name-only
diff-main = "!f() { git diff $(git merge-base main $(git rev-parse --abbrev-ref HEAD))..$(git rev-parse --abbrev-ref HEAD); }; f"
[include]
path = ~/.gitidentity.local
[commit]
verbose = true