在本地git checkout -b xxx 创建分支之后
想要提交分支到远程, 直接git push是不行的, 除非原来的分支里面就有这个分支.
需要先使用:git push origin xxx:xxx
例如:
git push origin test :test
最后一段要加上这句:
git push --set-upstream origin test
在本地git checkout -b xxx 创建分支之后
想要提交分支到远程, 直接git push是不行的, 除非原来的分支里面就有这个分支.
需要先使用:git push origin xxx:xxx
例如:
git push origin test :test
最后一段要加上这句:
git push --set-upstream origin test
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。