From 5be58e2f34c72f8ab89d1bab1c0506d52ca35d7a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 13 Apr 2014 23:58:41 -0700 Subject: [PATCH] fix git reset-branch --- dotfiles/gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index 2bb09dda..4d771e15 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -27,7 +27,7 @@ sha = rev-parse HEAD branch-or-sha = "!bs() { git which-branch 2> /dev/null || git sha 2> /dev/null ; }; bs" amend = commit -a --amend -C HEAD - reset-origin = "!r() { git reset --hard origin/\"$(git parse-branch)\" && git suir; }; r" + reset-origin = "!r() { git reset --hard origin/\"$(git which-branch)\" && git suir; }; r" [core] # Use custom `.gitignore` and `.gitattributes`