Youth

将本地项目上传到Github

  1. 本地仓库:

    a. git init 在本地创建一个Git仓库;

    b. git add . 将项目添加到暂存区;

    c. git commit -m "备注内容" 将项目提交到Git仓库;

  2. 远程仓库:

    a. 添加SSH KEY;  # 若配置过,可跳过

    b. 新建repositories;

  3. 本地仓库:

    a. git remote add origin git@github.com:UserName/projectName.git 将本地仓库与远程仓库关联;

    b. git push -u origin master 将本地项目推送到远程仓库。

posted @ 2021-05-02 17:42  lishuaics  阅读(94)  评论(0编辑  收藏  举报