更換branch位置 - jenhaoyang/backend_blog GitHub Wiki

git branch -f <branch-name> [<new-tip-commit>]

參考:
https://stackoverflow.com/a/5471197