Մι∩z•thedev · Follow
Published in Coding · 6 min read · 1 day ago
__
👏65k 💬321 🔖 ⤴️
__
git branch↵
* budfix
Oops! I misnamed…
# local
git branch -m bugfix↵
# remote
git push origin --delete budfix↵
git push origin -u bugfix↵
git branch -all↵
* bugfix
[!WARNING] Below needs to be verified
Remote rename first
# whatever branch I'm on
git branch -m budfix bugfix↵
git fetch origin↵
# set upstream to
git branch -u origin/bugfix bugfix↵
git remote set-head origin -a↵