git 提交到远程库基本命令

2017-06-01  本文已影响0人  JD2017

…or create a new repository on the command line
echo "# autofun" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/jd2017/autofun.git git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/jd2017/autofun.git git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
git 常用命令:
建分支:git branch test
切换分支:git checkout test
查看分支:git branch
删除分支: git branch -d test

error: src refspec master does not match any.
引起该错误的原因是,git提交空目录上去造成的,添加文件后提交解决;

上一篇下一篇

猜你喜欢

热点阅读