-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
32 lines (32 loc) · 1.11 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
[init]
templatedir = ~/.git/templates
defaultBranch = main
[user]
email = gerardo.santovena@nfl.com
name = Gerardo Santoveña
[core]
editor = vim
autocrlf = input
[help]
autocorrect = 1
[color]
ui = auto
[alias]
lga = log --graph --oneline --all --decorate
undo = "!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f"
newbug = "!sh -c 'git checkout -b $1 origin/main && git config branch.$1.merge refs/heads/$1' -"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
pr = "!f() { git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git checkout main ; git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
[merge]
tool = vimdiff
[mergetool]
keepTemporaries = false
prompt = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[url "git@github.dm.nfl.com:"]
insteadOf = https://github.dm.nfl.com/