You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
873 B

3 years ago
  1. ## 任务
  2. `git clone https://code.kfcoding.com/liuchangfreeman/gitcourse-guide`使用命令拉取本课程的项目文件。
  3. `cd gitcourse-guide`使用命令进入示例目录。
  4. 这是一个已经初始化完毕的示例gitcouse项目,下面我们将学习如何将其发布到代码托管平台上。
  5. ` git remote rm origin `使用命令删除已存在的远程仓库地址。
  6. ` git remote add origin git@github.com:gitcourse-sample/gitcourse-guide.git `命令使用将远程仓库地址设置为https://github.com/gitcourse-sample/gitcourse-guide
  7. ` git push -u -f origin master `使用命令将代码上传到github仓库中。
  8. ## 专家提示
  9. 免密码登录github需要将系统的ssh-key绑定到账号中,在本示例中这一步骤已预完成,具体教程请参考 [如何绑定ssh-key到github账号](https://www.cnblogs.com/wx1993/p/6646973.html)。