Gitlab Workflow and Customization for Users

Context / Information

I installed gitlab on ubuntu 12.04, as described on this official page: https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md

After I installed, I was able to access the web interface at http://machine_ip:3000 with credentials:

admin@local.host

5iveL! TO

On my machine, I have the following users: - git (which was installed without a password, as in the tutorial) - gitlab (install auto as in the tutorial) - my_username (the normal user that I use as root)

In the gitlab web interface, when prompted, I generated the rsa public key on my_username and inserted it there.

Then I proceeded to create a repository in / home / my _username / test with git init and git remotely adding the source, as in the tutorial. When I try to push my commit, I get the following error:

 To git@localhost :test.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ' git@localhost :test.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (eg 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details. 

I am telling you all this to better understand what I was trying to achieve and what error messages I am getting.

Problem

On the developer's machine, I installed putty, pageant and puttygen and msysgit. I created a key associated with a new user in the gitlab interface. In addition, I set GIT_SSH to use plink to use the msysgit screen (which serves to connect to the connection).

I can connect to git @machine_ip without using passwords, so the key is added to authorized_keys in git.

However, when I try to clone the repository with the original location git @machine_ip: test.git, I get the following error message:

 fatal: 'test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly 

I don't know what I'm doing wrong here. I have to do something else (creating a new project, setting up the repository differently, adding a new user and his key in gitlab), etc.

Can you provide some help?

Updated Information

I solved this by reinstalling the machine using a turnkey gitlab device, and then updating (with some fate, I admit) gitlab.

Thanks to everyone.

+4
source share
1 answer

I would first declare a repo test through the GitLab interface and clone this repo.
(instead of initializing the repo locally and trying to push it)

As OP rsavu is mentioned, using a turnkey GitLab device and updating GitLab was enough to solve the problem.

+2
source

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


All Articles