-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
67 lines (58 loc) · 1.89 KB
/
.gitconfig
File metadata and controls
67 lines (58 loc) · 1.89 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
[user]
name = Paavan Bhavsar
email = paavanb@gmail.com
# Nice and short aliases to common git commands.
# git st will show you "short status", which is great for quickly getting an idea
# for what's staged and unstaged. The syntax for short status is
# _ _ <file>, where the underscores are replaced by one-letter statuses
# The left underscore represents staged, and the right represents unstaged.
[alias]
st = status -s
co = checkout
br = branch
pup = !git push --set-upstream origin `git symbolic-ref --short HEAD`
sup = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(refname:short)'
# Show which branches are gone on remote (i.e., can be deleted locally)
gone = !git branch -vv | grep ': gone'
# Interative delete gone branches. List all gone branches, grab names, write to tmp, let me edit, then delete whatever branches are named in the file
cleanup = !git gone \
| awk '{print $1}' > /tmp/merged-branches \
&& vi /tmp/merged-branches \
&& xargs git branch -D </tmp/merged-branches
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = normal
[pull]
rebase = false
[push]
autoSetupRemote = true
[core]
editor = nvim
[fetch]
prune = true
[credential]
helper =
helper = /usr/local/share/gcm-core/git-credential-manager
[credential "https://dev.azure.com"]
useHttpPath = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f