-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitconfig
More file actions
55 lines (53 loc) · 1.62 KB
/
.gitconfig
File metadata and controls
55 lines (53 loc) · 1.62 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
[difftool]
external = ~/script/git_diff_cmd.sh
[github]
user = dcarney
[alias]
unstage = reset HEAD
# pretty history
hist = log --pretty=format:\"%Cgreen%h%Creset %ad | %s%d [%Cred%an%Creset]\" --graph --date=iso-local
lastsha = log -1 --format=format:%H
shas = log --format=format:%H
go = checkout
undopush = push -f origin HEAD^:master
s = status --untracked-files=all
ss = status -s --untracked-files=no # short status
d = diff
dc = diff --cached
dt = difftool
a = add
r = checkout --
pom = pull origin master
pr = pull --rebase
prom = pull --rebase origin master
branches = branch -avv --sort=-committerdate
tags = tag -l
stashes = stash list
remotes = remote -v
showlast = show HEAD --color
showstash = stash show -p
g = grep -n
thisbranch = rev-parse --abbrev-ref HEAD
currentbranch = rev-parse --abbrev-ref HEAD
# @{u} means 'upstream', aka origin/foobar if you're on the 'foobar' branch
unpushed = log @{u}..HEAD --pretty=format:\"%Cgreen%h%Creset %ad | %s%d [%Cred%an%Creset]\" --graph --date=short
unpulled = !git fetch origin --quiet && git log HEAD..@{u} --pretty=oneline
rhh = reset --hard HEAD
remote-tags = ls-remote --tags origin # | grep -v '\^{}'
undo-commit = reset --soft HEAD^
[color]
diff = auto
status = auto
branch = auto
[core]
editor = vim
pager = less --no-init --quit-if-one-screen
[push]
# 'git push' will push the current branch to its upstream branch
# see http://goo.gl/GLcPZ for details
default = upstream
[user]
name = Dylan Carney
email = dcarney@stripe.com
#[url "git@git.corp.stripe.com:"]
# insteadOf = https://git.corp.stripe.com