Fix when remote default branch is renamed
Published at 2024-04-21
Last update over 365 days ago
Licensed under CC BY-NC-SA 4.0
softwares-and-tools
git
branch
Fix when remote default branch is renamed
ref: github tip
git branch -m <old> <new>
git fetch origin
git branch -u origin/<new> <new>
git remote set-head origin -a