如何按用户在gitlab上上载项目?

如何按用户在gitlab上上载项目?,gitlab,Gitlab,我们正在使用Gitlab(7.5.3) 我创建了一个存储库,但我想将我的项目上载到它 我在repository页面上查看了某种类型的上传按钮,但没有看到任何类似的按钮 到目前为止,我已经查看了提供的链接,但仍然一无所获。他们提到命令行,那是Windows命令行吗 我可以通过Git GUI上传,没有Git GUI怎么上传 当我通过putty登录到用户帐户时,它显示 login as: root root@192.168.1.5's password: Last login: Tue May 26

我们正在使用Gitlab(7.5.3)

我创建了一个存储库,但我想将我的项目上载到它

我在repository页面上查看了某种类型的上传按钮,但没有看到任何类似的按钮

到目前为止,我已经查看了提供的链接,但仍然一无所获。他们提到命令行,那是Windows命令行吗

我可以通过Git GUI上传,没有Git GUI怎么上传

当我通过putty登录到用户帐户时,它显示

login as: root
root@192.168.1.5's password:
Last login: Tue May 26 12:20:10 2015 from 192.168.1.12
![grep: write error]

有人知道我们如何解决这些问题吗?

如果您有Git GUI,您可能也有Git Bash,它在Windows中为Git提供命令行支持

您可以使用此Git Bash上载项目。为此,您只需要一些
git
命令,而不必登录Gitlab的服务器(我想这就是您尝试的原因)。当您创建新项目并希望上载它时,Gitlab会提供此命令

首先打开gitbash。然后:

cd c:\Users\Me\..\my_project\   # Go to your project directory in Windows
git init                        # Initialize this directory as a git repo
git remote add origin git@your_gitlab_server_ip:your_username/your_project_name.git
git push -u origin master`      # Send your code to your Gitlab instance
向git提供一些关于你的信息也是一个好主意。此信息将由Gitlab显示:

git config --global user.name "Your Name"
git config --global user.email "your_name@your_mail.com"

请记住,使用Gitlab时,git的repo和Gitlab之间的唯一交互应该通过
git
命令进行,而不是登录到此服务器。

尝试将项目推送到Gitlab-->打开命令行的4步操作

cd to/path/local
git init
git remote add anything_name name http://scmgit.ktb/username/projectname.git
git push -u test anything_name master

希望就是拯救你的日子。

我已经在Git Bash中完成了上述步骤。之后,当我通过google chrome或mozilla firefox登录我的gitlab服务器时,显示502 gitlab没有响应。如果此问题仍然存在,请与您的GitLab管理员联系。发生502时,请尝试删除该实例。登录到承载gitlab的Unix计算机,然后运行
sudo gitlab ctl restart
。顺便说一句,一个简单的
git推送不能对此负责。查看gitlab的登录
/var/opt/gitlab
以调查登录到承载gitlab的Unix计算机并运行sudo gitlab ctl restart命令,但仍然显示502 gitlab没有响应。如果此问题仍然存在,请与gitlab管理员联系。