-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
84 lines (60 loc) · 1.98 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
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
[user]
name = Kyle Suarez
email = [email protected]
[credential]
username = ksuarz
helper = cache --timeout=604800
[url "https://github.com/"]
insteadOf = "github:"
insteadOf = "gh:"
[url "https://gist.github.com/"]
insteadOf = "gist:"
[url "https://[email protected]/"]
insteadOf = "bitbucket:"
insteadOf = "bb:"
[core]
editor = vim
excludesfile = /home/ksuarz/.gitignore_global
[alias]
# Show git aliases.
alias = "!git config -l | grep alias | cut -c 7-"
# List all files with conflicts.
conflicts = diff --name-only --diff-filter=U
# Takes a commit-ish as an argument and shows the files changed in that commit.
files-changed = diff-tree --no-commit-id --name-only -r
# Fetch the latest version of master from upstream, then update our fork.
update-fork = "!git fetch upstream master:master && git push origin upstream/master:master"
# Display commits in graph format.
graph = log --graph
# Colorize grep output.
grep = grep --color=auto
# Selectively undo changes.
rollback = checkout -p
# See what's staged.
staged = diff --cached
# Update our fork and grab all of the changes from upstream (even on non-master branches).
sync = "!git fetch upstream && git update-fork"
# Remove a file from staging.
unstage = reset --
# Commit a work in progress.
wip = commit --all --message 'work in progress'
[color]
ui = auto
[merge]
# All merges are fast-forward only by default.
ff = only
[pull]
# When pulling from an upstream repository, only allow fast-forwards.
ff = only
[push]
# By default, a push only pushes the current branch.
default = current
[rebase]
# Automatically squash commits in an interactive rebase.
autoSquash = true
# Warn if commits are deleted in an interactive rebase.
missingCommitsCheck = warn
[rerere]
# Activate recording of resolved conflicts.
enabled = true
#" vim: filetype=config