Git创建带/的远程分支

最近看到有些项目使用feature/xxx的格式命名新功能的开发分支。

本地创建分支:git branch feature/xxx

本地创建并切换分支:git checkout -b feature/xxx

推送到远程分支:git push origin feature/xxx

一条龙命令:gif push origin 本地分支名字:feature/xxx

冒号前面不能加空格,否则会出现:
error: src refspec feature/xxx does not match any

feature前面不能加斜杠:
fatal: remote part of refspec is not a valid name in xxx

猜你喜欢

转载自blog.csdn.net/qq_15602635/article/details/80428038