From ddbae4f199e3ae8cf515c5a5ca1bdc853f55dd92 Mon Sep 17 00:00:00 2001 From: Harlan T Wood Date: Wed, 20 Jul 2016 11:42:02 -0700 Subject: [PATCH] update git alias to cover edge case from https://github.com/aanand/git-up/issues/118#issuecomment-222141333 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f1dd8a6..c1e8daf 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This project is no longer maintained, for several reasons: Accordingly, this line will get you a `git up` that works just as well and doesn't involve installing any Ruby: git config --global alias.up \ - '!git fetch && git rebase --autostash FETCH_HEAD' + '!git fetch && git rebase --autostash $(git for-each-ref --format "%(upstream:short)" $(git symbolic-ref -q HEAD))' SYNOPSIS --------