在命令行界面依次执行下面界面 git init git remote add origin https://test:testpassword@gitlab.example.com/test/test.git # test:testpassword 换成自己的用户名和密码 git add . git commit -m "Initial commit" git push -u origin master 上面的报错通过下面设置避免
C:\Program Files (x86)\Git\etc\gitconfig # 编辑gitconfig,路径可以不一致,可以直接搜索到gitconfig文件,然后编辑,添加下面三行
[http] sslVerify = false sslCAinfo = /bin/curl-ca-bundle.crt 然后重新git push ,可以看到已经成功啦。 返回到gitlab UI界面,可以看到本地的test项目已经添加到gitlab仓库。到这里通过使用giltab,上传本地的项目到gitlab系统。