forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
40 lines (39 loc) · 1.06 KB
/
gitconfig
File metadata and controls
40 lines (39 loc) · 1.06 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
[init]
defaultBranch = main
templatedir = ~/.git_template
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
lg = log --pretty='%Cred%h%Creset | %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(cyan)[%an]%Creset' --graph
wip = "!f() { dt=$(date '+%d/%m/%Y %H:%M:%S'); msg=${1-WIP - $dt}; SKIP=all git commit -am \"$msg\"; }; f"
b = "!f() { branch=$(git rev-parse --abbrev-ref HEAD); echo $branch; }; f"
a = "add --patch"
[core]
excludesfile = /Users/eeklund/.gitignore_global
autocrlf = input
[merge]
ff = only
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[rebase]
autosquash = true
[include]
path = ~/.gitconfig.local
[diff]
colorMoved = zebra
[user]
name = Eric Eklund
email = eeklund@umn.edu
[include]
path = /Users/eeklund/.asr_gitconfig