-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig.base
41 lines (34 loc) · 1.23 KB
/
.gitconfig.base
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
[user]
name = "Marc Dougherty"
email = "[email protected]"
[github]
user = muncus
[alias]
ci = commit
co = checkout
cia = commit -a
civ = commit -v
civa = commit -av
revert-pending = checkout #reverts a pending change, not checked in.
rollback-last = revert HEAD^ # un-do last commit.
current-branch = !sh -c 'git branch | grep \"*\" | cut -d \" \" -f 2' -
today = diff --stat 'HEAD@{midnight}'
yesterday = diff --stat 'HEAD@{yesterday}' 'HEAD@{midnight}'
xl = log --graph --pretty=format:'commit: %C(red)<%H>%Creset %C(bold magenta)%d %Creset%ndate: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%nauthor: %C(bold blue)%an%Creset %C(blue)<%ae>%Creset%n%C(cyan)%s%n%Creset'
rm-squashmerged-branches = !git branch --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" { print $1 }' | xargs --no-run-if-empty git branch -D
#svn aliases.
svnup = svn rebase
svnpush = svn dcommit
[core]
excludesfile = ~/.gitignore
[push]
default = current
autoSetupRemote = true
[include]
path = ~/.gitconfig_local
[credential "https://github.com"]
helper = !/usr/bin/gh auth git-credential
[rerere]
enabled = true
[remote "origin"]
prune = true