美文网首页
Angular---将新建项目的代码提交到远程仓库

Angular---将新建项目的代码提交到远程仓库

作者: BigDipper | 来源:发表于2019-07-04 12:29 被阅读0次

    新建了一个Angular项目后,它是默认带git版本控制的。那么如何将这个项目的代码提交到远程仓库中呢?

    步骤如下:

    1. 在本地创建master分支:
    git commit -am 'first commit'
    
    1. 添加远程仓库:
    git remote add origin 远程仓库地址
    
    1. 将本地仓库master分支与远程仓库的分支关联:
    git push --set-upstream origin master
    
    1. 将本地代码提交到远程:
    git push
    

    相关文章

      网友评论

          本文标题:Angular---将新建项目的代码提交到远程仓库

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