将我的项目推送到GitLab

Hel*_*oui -3 gitlab

我是第一次使用Git,有人可以帮助我,我有用户名,密码和项目存储库,我会使用Windows 7将项目推送到Gitlabto该存储库。

Von*_*onC 8

如果您声明了一个空的Git存储库(请参阅Create Project),则可以转到本地项目,然后:

cd /path/to/my/local/project:
git init .
git add -A .
git commit -m "First commit"
git remote add origin https://<myLogin>@<mygitlab>/<mylogin>/<myproject>
git push -u origin master
Run Code Online (Sandbox Code Playgroud)

注意:要获取Git,只需解压缩所需的PortableGit-2.4.5.1-4th-release-candidate-64-bit.7z.exe任何位置并添加C:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\cmd到中%PATH%。