📅  最后修改于: 2022-03-11 14:51:40.260000             🧑  作者: Mango
# suppose u r on branch test1 n want to rename it to test2
git branch -m
#example
git branch -m test2
# if u r on branch test1 and want to change another branch test2
git branch -m
#example
git branch -m test2 test3