git 初次提交

前提:已经关联了ssh到本地,不用再输入用户名和密码

知道仓库地址:https://xxx.xxx.com/aiotcloud/yihao01-node-js.git

第一步:进入本地文件夹执行

git init

第二步:提交本地文件

git add .
git commit -m "第一次提交"

第三步:添加到远程仓库

git remote add origin https://xxx.xxx.com/aiotcloud/yihao01-node-js.git

第四步:push

git push -u origin master

 

posted @ 2019-07-05 16:33  front-gl  阅读(1572)  评论(0编辑  收藏  举报