-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
45 lines (45 loc) · 1.35 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
[core]
editor = vim
excludesfile = /home/yoran/.gitignore_global
[user]
name = Yoran Brondsema
email = [email protected]
[credential]
helper = cache --timeout=3600
[alias]
st = status
ci = commit
ca = commit --amend --no-edit
br = branch
co = checkout
cm = checkout master
cb = checkout -b
ds = diff --staged
changes = log -n1 -p --format=fuller
last = log -n1 # display last commit
undo = clean -f -d
undoci = reset HEAD~1
unstage = reset HEAD --
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short
lg-full = log --name-status --pretty=fuller
# From https://stackoverflow.com/a/25952970/1269194
t = log --tags --no-walk --date=iso-local --pretty='%C(auto)%h %cd%d %s'
poh = push origin HEAD
pohf = push origin HEAD --force-with-lease
plo = pull origin
plom = pull origin master
aa = add -A
# From http://rwjblue.com/2017/05/05/common-git-aliases/
delete-merged-branches = "!git branch --merged master | grep -v -e 'master' -e '\\*' | xargs -n 1 git branch -d && git remote prune origin"
[gpg]
program = gpg2
[push]
followTags = true
[pull]
rebase = true
[pager]
branch = false
log = false
[init]
defaultBranch = main