Skip to content

Commit

Permalink
Git alias updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dflems committed Feb 10, 2014
1 parent d63348a commit 2689274
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 43 deletions.
29 changes: 20 additions & 9 deletions git/gitconfig.symlink.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,34 @@
[credential]
helper = GIT_CREDENTIAL_HELPER
[alias]
b = branch
# shorthand
st = status -sb
cp = cherry-pick
cl = clone
ci = commit
co = checkout
br = branch
diff = diff --word-diff
dc = diff --cached
ds = diff --staged
po = push origin
amend = commit --amend -C HEAD
aa = add --all
all = add -A

# stash
sl = stash list
sa = stash apply
ss = stash save

# custom
fup = log --since '1 day ago' --oneline --author <AUTHOREMAIL>
amend = commit --amend -C HEAD
dlm = !git-delete-local-merged
undo = "!git reset --soft HEAD^"

# l = log all commits, (la = all reachable refs)
# r = log recent commits (ra = all reachable refs)
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
r = !git l -20
ra = !git r --all
# logging
ls = log --pretty=format:'%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%an]' --decorate --date=short
lss = !git --no-pager ls -n 25
lsv = !git ls --numstat
[color]
diff = auto
status = auto
Expand Down
34 changes: 0 additions & 34 deletions git/githelpers.symlink

This file was deleted.

0 comments on commit 2689274

Please sign in to comment.