-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
30 lines (30 loc) · 1.39 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
[alias]
st = status
br = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
ch = checkout
ci = commit
wt = worktree
cp = cherry-pick
tree = log --graph --decorate --pretty=oneline --abbrev-commit
unmerge = reset --merge ORIG_HEAD
new = !git log @{1}..@{0}
log-remote-changes = !git log ..$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
fforward = !git merge --ff-only $(git rev-parse --abbrev-ref --symbolic-full-name @{u})
standup = !git log --author=\"$(git config --get user.name)\" --since=\"$([[ "1" == "$(date +%u)" ]] && echo last friday.midnight || echo yesterday.midnight)\"
fixup = "!sh -c '(git diff-files --quiet || (echo Unstaged changes, please commit or stash with --keep-index; exit 1)) && COMMIT=$(git rev-parse $1) && git commit --fixup=$COMMIT && git -c sequence.editor=: rebase -i --autosquash $COMMIT~1' -"
up = "!f() { git update-ref refs/heads/$1 refs/remotes/${2:-origin}/$1; }; f"
ignore = update-index --skip-worktree
unignore = update-index --no-skip-worktree
[user]
name = Vegard Løkken
email = [email protected]
[push]
default = current
[core]
editor = vim
excludesfile = ~/.gitignore
autocrlf = input
[pull]
rebase = false
[diff]
wsErrorHighlight = all