How to upload projects to gitlab by user?

We use Gitlab (7.5.3).

I created a repository, but I want to upload it to it.

I looked at the repository page for any download button, but I did not see anything like it.

I looked at the links provided so far, but I still do not get anywhere. They mention the command line, is this the Windows command line?

I can download via the Git GUI, how to download without the Git GUI?

And when I log into the user account via putty, it shows

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

Does anyone know how we can solve this problem?

+6
source share
1 answer

If you have a Git GUI, you probably also have Git Bash, which provide command line support for Git inside Windows.

You can use this Git Bash to download your project. To do this, you just need the git command, and you do not need to register with the Gitlab server (I suggested why you tried this). This command is provided by Gitlab when you create a new project and want to download it.

First open Git Bash. Then:

 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 

It is also a good ideal to provide Git with some information about you. This information will be displayed by Gitlab:

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

Remember that with Gitlab, the only interaction between your Git repo and Gitlab should be with the git command, not with the login to this server.

+4
source

Source: https://habr.com/ru/post/987904/


All Articles