Skip to content

Commit

Permalink
added more git aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
janosgyerik committed Jul 25, 2014
1 parent a2b4c03 commit 59cf625
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .gitconfig
Expand Up @@ -12,11 +12,12 @@
# other custom shortcuts
br = branch
ls = ls-files
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lol = log --graph --decorate --oneline
lola = log --graph --decorate --oneline --all
revlog = log --first-parent
untracked = ls-files -o
add = add -v
grep = grep -n

# deployment
deploy-beta = push releases master:beta
Expand All @@ -33,6 +34,9 @@
# Credit an author on the latest commit
credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f"
today = !git log --since=midnight --author=\"$(git config user.name)\" --oneline
mrequest = push -u origin HEAD
delete-unused-branches = "!f() { git branch | xargs git branch -d; }; f"
missing = "!f() { git rev-list ..$1 --oneline | sed -e '1 iOnly in other:'; git rev-list $1.. --oneline | sed -e '1 iOnly in HEAD:'; }; f"

[apply]
# Detect whitespace errors when applying a patch
Expand Down

0 comments on commit 59cf625

Please sign in to comment.