-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
101 lines (82 loc) · 3.35 KB
/
Copy path.gitconfig
File metadata and controls
101 lines (82 loc) · 3.35 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[include]
# Include user-specific info like git credentials.
path = ~/.gitconfig.local
path = ~/dotfiles/personal/.gitconfig
path = ~/shopify-dotfiles/personal/.gitconfig
path = /Users/kristianott/.config/dev/gitconfig
[alias]
# Amend the currently staged files to the latest commit
amend = commit --amend --reuse-message=HEAD
# Append any staged files onto the most recent commit.
commend = commit --amend --no-edit
# Custom log formats
ll = !git --no-pager log --graph --all --decorate --pretty=format:'%C(auto)%h%d %ad %C(red bold)(%ar%C(red bold))%Creset %Creset%C(magenta)%an %Creset<%ae> %C(white bold)%<(80,trunc)%s' --date=iso
l = !git --no-pager log -n 40 --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(blue bold)<%an>%Creset'
# View the current working tree status using the short format
s = status -s
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -av
remotes = remote -v
# Remove branches that have already been merged with master
# a.k.a. ‘delete merged’
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
# Forcepush, but fail if the remote has been updated since you last pulled.
# Prevents clobbering other people's commits on the same branch unless you really, really want to.
forcepush = push --force-with-lease
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[core]
# http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
eol = native
autocrlf = input
safecrlf = true
ignorecase = false
excludesfile = ~/.gitignore_global
# Make `git rebase` safer on OS X
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
trustctime = false
# Prevent showing files whose names contain non-ASCII symbols as unversioned.
# http://michael-kuehnel.de/git/2014/11/21/git-mac-osx-and-german-umlaute.html
precomposeunicode = false
editor = vim
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
# Detect copies as well as renames
renames = copies
algorithm = patience
[help]
# Automatically correct and execute mistyped commands. Keep this off unless you enjoy pain.
autocorrect = 0
[pull]
# Prevent automatic creation of merge commits if the pull can't fast forward.
# If a pull fails because of this, you can retry it with `git pull --rebase` to rebase onto the new commits.
# Shopify prefers to rebase, so this will require you to decide if a rebase is necessary.
ff = only
[rerere]
# https://git-scm.com/docs/git-rerere
# Reuse Recorded Resolution
# If you have a merge conflict, this setting will record how that conflict was resolved. If you would then need to
# resolve that same conflict in a future rebase, this setting will reuse your previously recorded conflict resolution.
enabled = true
autoupdate = true
[user]
email = ott.kristian@gmail.com
name = Kristian Ott
[maintenance]
repo = /Users/kristianott/world/trees/root/src
repo = /Users/kristianott/world/git