From 007b29589b37962c305405d5f6b052cda8c0be68 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 15 Mar 2024 23:47:23 +0300 Subject: [PATCH] Fix(topic-move): Set upstream branch on push --- gitalias.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitalias.txt b/gitalias.txt index 3a91fde..719011d 100644 --- a/gitalias.txt +++ b/gitalias.txt @@ -1746,7 +1746,7 @@ new_branch=\"$1\"; \ old_branch=\"$(git current-branch)\"; \ git branch --move \"$old_branch\" \"$new_branch\"; \ - git push origin \":$old_branch\" \"$new_branch\"; \ + git push --set-upstream origin \":$old_branch\" \"$new_branch\"; \ };f"