dotfiles/bin/rename_git_branch.sh

7 lines
111 B
Bash

#!/bin/bash
git checkout $1
git branch -m $1 $2
git fetch
git branch --unset-upstream
git branch -u origin/$2