Skip to content

Commit

Permalink
new helpful git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jun 28, 2009
1 parent 2cc3b8c commit fcf72dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
nb = checkout -b
pending = !git --no-pager log origin/master..master && echo
db = !sh -c 'git branch -D "$0" && git push origin ":$0"' &> /dev/null
missing = !sh -c 'git cherry "$0" | cut -sd + -f 2 | xargs "git show"'
lc = log ORIG_HEAD.. --stat --no-merges
conflicts = !git ls-files --unmerged | cut -c51- | sort -u | xargs $EDITOR
resolve = !git ls-files --unmerged | cut -c51- | sort -u | xargs git add
[format]
# pretty = format:"%Cblue%ar%Creset\t%s"
[color]
Expand All @@ -27,3 +31,5 @@
summary = true
[branch]
autosetupmerge = true
[push]
default = tracking

0 comments on commit fcf72dd

Please sign in to comment.