新建了一个Angular项目后,它是默认带git版本控制的。那么如何将这个项目的代码提交到远程仓库中呢?
步骤如下:
- 在本地创建
master
分支:
git commit -am 'first commit'
- 添加远程仓库:
git remote add origin 远程仓库地址
- 将本地仓库
master
分支与远程仓库的分支关联:
git push --set-upstream origin master
- 将本地代码提交到远程:
git push
新建了一个Angular项目后,它是默认带git版本控制的。那么如何将这个项目的代码提交到远程仓库中呢?
步骤如下:
master
分支:git commit -am 'first commit'
git remote add origin 远程仓库地址
master
分支与远程仓库的分支关联:git push --set-upstream origin master
git push
本文标题:Angular---将新建项目的代码提交到远程仓库
本文链接:https://www.haomeiwen.com/subject/ftpqfctx.html
网友评论