-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
43 lines (36 loc) · 1.21 KB
/
.gitconfig
File metadata and controls
43 lines (36 loc) · 1.21 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
[alias]
l = log --pretty=oneline -n 20 --graph
s = status -s
d = diff --patch-with-stat
p = !"git pull; git submodule foreach git pull origin master"
c = clone --recursive
ca = !git add -A && git commit -av
go = checkout -B
tags = tag -l
remotes = remote -v
credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f"
undopush = push -f origin HEAD^:master
pom = push origin master
# Detect whitespace errors when applying a patch
[apply]
whitespace = fix
# Use custom `.gitignore` and `.gitattributes`
[core]
excludesfile = /etc/.gitignore
attributesfile = ~/.gitattributes
# Treat spaces before tabs, lines that are indented with 8 or more spaces, and all kinds of trailing whitespace as an error
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
# Include summaries of merged commits in newly created merge commit messages
[merge]
log = true
# Use `origin` as the default remote on the `master` branch in all cases
[branch "master"]
remote = origin
merge = refs/heads/master
[credential]
helper = osxkeychain
[user]
name = Graham Floyd
email = gfloyd@catsone.com