将我的项目推到GitLab

将我的项目推到GitLab,gitlab,Gitlab,我第一次使用Git,有人可以帮助我,我有用户名、密码和项目存储库,我会使用windows 7将我的项目推到Gitlab到这个存储库。 谢谢如果您声明了一个空的Git回购协议(请参阅),您可以转到本地项目并: cd /path/to/my/local/project: git init . git add -A . git commit -m "First commit" git remote add origin https://<myLogin>@<myg

我第一次使用Git,有人可以帮助我,我有用户名、密码和项目存储库,我会使用windows 7将我的项目推到Gitlab到这个存储库。
谢谢

如果您声明了一个空的Git回购协议(请参阅),您可以转到本地项目并:

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 -f origin master 
#The -f flag stands for force. This will automatically overwrite everything in the remote directory. We're only using it here to overwrite the README that GitHub automatically initialized.
cd/path/to/my/local/project:
git init。
git添加-A。
git提交-m“首次提交”
git远程添加源https://@//
git push-u-f原始主机
#f旗代表武力。这将自动覆盖远程目录中的所有内容。我们只是在这里使用它来覆盖GitHub自动初始化的自述文件。

注意:要获得Git,只需在任何地方解压,然后将
C:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\cmd
添加到您的
%path%

很高兴听到您开始学习Git,它非常有用。堆栈溢出可能不是解决此类一般问题的最佳场所,我会尝试从互联网上尽可能多地学习,然后带着具体问题来到这里。从Atlassian查看这篇很棒的git教程:应该是git remote add origin https://@/@Amansharma谢谢。我已相应地编辑了答案。