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
原文地址:https://www.cnblogs.com/mmzuo-798/p/11139172.html