From 3f22d064ea674c223893fff57a24a89ba299f437 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 19 Jan 2016 12:36:22 -0200 Subject: Merge-to alias: support for branches with slashes --- gitconfig.dot.link | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitconfig.dot.link b/gitconfig.dot.link index 14b48b6..7703c51 100644 --- a/gitconfig.dot.link +++ b/gitconfig.dot.link @@ -16,4 +16,4 @@ [alias] # Thanks https://stackoverflow.com/questions/3672073/git-merge-to-another-branch #merge-to = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f" - merge-to = "!f() { export tmp_branch=`git branch | grep '* ' | tr -d '* '`; git checkout $1 && git merge $tmp_branch && git checkout $tmp_branch; unset $tmp_branch; }; f" + merge-to = "!f() { export tmp_branch=`git branch | grep '* ' | tr -d '* ' | tr -d '/'`; git checkout $1 && git merge $tmp_branch && git checkout $tmp_branch; unset $tmp_branch; }; f" -- cgit v1.2.3