Browse files

add git aliases to reset on upstream branch state

  • Loading branch information...
1 parent 490e43e commit 48c22bd74d0eb6809910bfd087eefd7cb6685ace @sunaku committed Oct 19, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 .alias.d/git.sh
View
6 .alias.d/git.sh
@@ -14,9 +14,15 @@ alias god='git diff'
# reset working copy to current index
alias gor='git reset --soft'
+# reset working copy to upstream state
+alias gorh='git reset --soft $(gbh)'
+
# reset working copy to current commit
alias goR='git reset --hard'
+# reset working copy to upstream state
+alias goRh='git reset --hard $(gbh)'
+
# stage deletion and also delete from working copy
alias gox='git rm -r --ignore-unmatch'

0 comments on commit 48c22bd

Please sign in to comment.