Repository navigation
Expand file tree
/
Copy pathgitconfig.erb
More file actions
66 lines (57 loc) · 1.73 KB
/
Copy pathgitconfig.erb
File metadata and controls
66 lines (57 loc) · 1.73 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
[user]
<% unless $template_vars['git_name'].empty? %>
name = <%= $template_vars['git_name'] %>
<% end %>
<% unless $template_vars['git_email'].empty? %>
email = <%= $template_vars['git_email'] %>
<% end %>
[alias]
co = checkout
ci = commit
cm = commit -m
st = status -s
lol = log --pretty=oneline --abbrev-commit --graph --decorate
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%%an>%Creset' --abbrev-commit
lgp = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%%an>%Creset' --abbrev-commit -p
unstage = reset HEAD
aa = add .
# Not yet added - doesn't include ignored files
new = ls-files --others --exclude-standard
# Files that are in the staging area
added = diff --cached --name-only
today = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative
ff = merge --ff-only
pullsubs = submodule foreach git pull origin master
tags = tag -l
branches = branch -a
remotes = remote -v
delta = diff --name-status
fdelta = diff --summary
[core]
pager = less
editor = vim
quotepath = false
excludesfile = ~/.gitignore
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[github]
<% unless $template_vars['github_username'].empty? %>
user = <%= $template_vars['github_username'] %>
<% end %>
<% unless $template_vars['github_api_token'].empty? %>
token = <%= $template_vars['github_api_token'] %>
<% end %>
[merge]
tool = <%= File.exists?('/usr/bin/opendiff') ? 'opendiff' : 'vimdiff' %>
[diff]
# For Github-style word diffs
wordRegex = [^[:space:]]
[help]
autocorrect = 1
[push]
# Push current branch even if you've never pushed it before
default = current