你本地有分支service-catelog-createtm, 如果不想改这个名称可以这么做(feature/service-catelog-createtm不存在才行):
1. git push origin service-catelog-createtm:feature/service-catelog-createtm
2. git branch service-catelog-createtm --set-upstream-to origin/feature/service-catelog-createtm
你本地有分支service-catelog-createtm, 如果要把本地和远程都改为feature/service-catelog-createtm可以这么做(feature/service-catelog-createtm不存在才行):
1. git branch -m service-catelog-createtm feature/service-catelog-createtm
2. git push origin feature/service-catelog-createtm:feature/service-catelog-createtm
3. git branch feature/service-catelog-createtm --set-upstream-to origin/feature/service-catelog-createtm
原文:https://www.cnblogs.com/276815076/p/14471395.html