Git分支 2023-11-20 重命名分支 # -M: --move --force,强制重命名分支,即使目标分支名已经存在. # 将 dev 分支重命名为 main. git branch -M dev main