Git alias:
topic-move = "!f(){ \
new_branch=\"$1\"; \
old_branch=$(git current-branch); \
git branch --move \"$old_branch\" \"$new_branch\"; \
git push origin \":$old_branch\" \"$new_branch\"; \
};f"
Example:
git topic-move foo
Customize this alias as you like for your own workflow.
Our workflow does these steps:
Move the local branch.
Move the remote branch by pushing to origin.