美文网首页
git 提交到远程库基本命令

git 提交到远程库基本命令

作者: JD2017 | 来源:发表于2017-06-01 10:53 被阅读0次

    …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提交空目录上去造成的,添加文件后提交解决;

    相关文章

      网友评论

          本文标题:git 提交到远程库基本命令

          本文链接:https://www.haomeiwen.com/subject/cwisfxtx.html