/
gitconfig.symlink
54 lines (54 loc) · 1.8 KB
/
gitconfig.symlink
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
[user]
name = Yossef Mendelssohn
email = ymendel@pobox.com
[alias]
aliases = !git config --list | grep 'alias.' | sed 's/^alias.//' | sed 's/=/ => /'
stat = status
st = status
ci = commit
cia = !git add --all && git commit --all
cie = commit --allow-empty
atc = commit --amend --no-edit
co = checkout
staged = diff --cached
pending = diff --cached
unstage = reset HEAD
uncommit = reset --soft HEAD^
undo = !sh -c 'git revert --no-commit ${1:-HEAD}'
export = !sh -c 'git clone --depth 1 $1 && rm -fr `expr \"$1\" : \".*[:/]\\([a-zA-Z_]*\\).git\"`/.git' -
x = !gitx
hack = !hack
ship = !ship
deleted = log --oneline --diff-filter=D --
sts = status --short --branch
logd = log --oneline --decorate
logg = log --graph --pretty=format:'%C(yellow)%h%C(reset) -%C(cyan)%d%C(reset) %s %Cgreen(%cr) %C(bold blue)<%an>%C(reset)' --abbrev-commit --date=relative
bw = branch --contains
diffw = diff --word-diff
ri = rebase --interactive
ria = rebase --interactive --autosquash
fixup = !sh -c 'git commit -m \"fixup! $(git log -1 --format='\\''%s'\\'' $@)\"' -
squash = !sh -c 'git commit -m \"squash! $(git log -1 --format='\\''%s'\\'' $@)\"' -
redact = filter-branch
retcon = filter-branch
setup = !sh -c 'git clone $1 && cd `expr \"$1\" : \".*[:/]\\([a-zA-Z_]*\\).git\"` && git checkout -b work' -
top = rev-parse --show-toplevel
[color]
status = auto
diff = auto
branch = auto
interactive = auto
[color "status"]
added = yellow
changed = green
untracked = cyan
[github]
user = ymendel
password = !security 2>&1 >/dev/null find-generic-password -gs github.password | ruby -e 'print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/'
[hub]
protocol = https
[core]
excludesfile = /opt/boxen/config/git/gitignore
helper = /opt/boxen/bin/boxen-git-credential
[credential]
helper = /opt/boxen/bin/boxen-git-credential