在Git新创建分支时报了错误:fatal: Not a valid object name: ‘master’. 经过测试,终于找到原因了,在创建新分支前要先将代码commit提交到本地创建master分支,然后就能正常创建新分支了。