-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
28 lines (27 loc) · 758 Bytes
/
gitconfig
File metadata and controls
28 lines (27 loc) · 758 Bytes
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
[user]
name = Alex Silcock
[core]
editor = vim
excludesfile = ~/dotfiles/gitignore_global
[color]
ui = true
[push]
default = current
[alias]
co = checkout
# fuzzy checkout - checkout a branch containing the string (even if the branch only exists on the remote)
c = "!f() { git branch -a | sed 's/remotes\\/origin\\///g' | grep -v 'HEAD' | grep $1 | sort | uniq | xargs git checkout; }; f"
st = status
f = fetch
ff = merge --ff-only
ffo = "!git merge --ff-only origin/$1"
br = branch
rc = rebase --continue
dc = diff --cached
rh = reset --hard @{u}
#review = "!f() { git merge $1 --no-commit --no-ff; git diff --cached; }; f"
recall = "!g() { ~/dotfiles/scripts/recall.sh $1 }; g"
[rerere]
enabled = true
[merge]
conflictStyle = diff3