Skip to content

Commit

Permalink
add some more git aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul C. Mantz committed Apr 15, 2016
1 parent 82ed575 commit 7657a2b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,24 @@
rbc = rebase --continue

# log shortcuts
lgo = log --graph --oneline
lgo = log --graph --oneline --decorate
lgp = log --patch
lgs = log --stat
hist = log --graph --oneline --all
tree = log --oneline --decorate --graph --all

# analytics
who = shortlog -s --
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author =\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short

# misc
spsp = "!sh -c 'git stash; git pull $@; git stash pop'"
tidy = "!f() { \
local branch="${1-develop}"; \
echo "Pruning branches that are already merged into $branch..."; \
git remote prune origin && git branch --merged "$branch" | grep --color=auto --exclude-dir={.bzr,.cvs,.git,.hg,.svn} -v " $branch" | xargs -n 1 git branch -d; \
}; f"


# Local Variables:
# mode: conf-unix
Expand Down

0 comments on commit 7657a2b

Please sign in to comment.