Git创建分支/GIT提交分支

git clone xxx.git
cd fwspp-react
git init
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
git checkout -b daily/0.0.1
git push origin daily/0.0.1

切记,一定要先git init/push一些文件到远程origin仓库,否则创建仓库分支会报错

rror: src refspec master does not match any.
error: failed to push some refs to 'git@xxx.git'

原文地址:https://www.cnblogs.com/ae6623/p/7134384.html