首次提交本次代码到gitlab上,报错:Updates were rejected because the remote contains work that you do 报错情况如下: 错误原因: 由于在gitlab上新建空项目时候,勾选了Initialize this repository with a README这项,导致远程仓库不为空 也就是 此刻的空项目是 解决方法: 现将远程仓库的内容拉取到本地,然后再进行提交 1.删除gitlab上现有的空项目,新建项目,不要勾选Initial
将的SampleTable例子提交到github 具体步骤如下: a. 首先登陆github b. 创建新的reponsitory name, description c. 打开terminal, cd 文件夹下 d. vim README.md 编写项目简介 e. echo "# SampleTable" >> README.md git init git add README.md git commit -m "first commit" git r