0

I've created a remote repository on my local Gitlab server and I'm trying to push the local content but it's asking me for my pass but now for my user

$ git push -u origin master
[email protected]'s password:

I've tried with my user's pass and the root pass and it doesn't work, what pass is asking for??

Claudio
  • 10,614
  • 4
  • 31
  • 71
afdi5
  • 307
  • 2
  • 13

2 Answers2

0

If you're connecting through ssh (i.e. not through the git daemon), it is asking the password of the git user on the machine. In this case, you may want to change the remote to <your username>@192.168.0.6.

Claudio
  • 10,614
  • 4
  • 31
  • 71
0

The git URL structure is:
protocol://username:[email protected]/group/project.git

Example:
http://git:[email protected]/main/sales.git

Git will ask for user if you do not set the user name in the URL so you need to set a new URL by using this command
$ git remote set-url

Like this $ git remote set-url origin http://gitlab.company.com/group/project.git