Fork me on GitHub

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'

posted @ 2017-07-07 22:29  _落雨  阅读(512)  评论(0编辑  收藏  举报