Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9050

Closed
Open
Created Mar 29, 2015 by Administrator@rootOwner

Git clone with https failed, but with http succeed.

Created by: eric-nuaa

I am trying to clone a project on a GitLab which is hosted by someone else, but I found https failed:

$ git clone https://git.xxx.com/eric/testproj.git 
Initialized empty Git repository in /home/eric/testproj/.git/
error:  while accessing https://git.xxx.com/eric/testproj.git/info/refs

fatal: HTTP request failed

But git clone with http succeed:

$ git clone http://git.xxx.com/eric/testproj.git  
Initialized empty Git repository in /home/egobuild/testproj/.git/
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 9 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (9/9), done.

The version of the GitLab is: 7.5.3.

And after git clone with http, I changed some code for the project, and tried to push to remote master, but failed, it even did not ask for my username/password for the GitLab.

$ git push 
error: The requested URL returned error: 401 Unauthorized while accessing http://git.xxx.com/eric/testproj.git/info/refs

fatal: HTTP request failed

The weird thing is, I have another machine on which I can clone this project with https (this machine is in a different network from the machine above), so I scp the project with the changed code to this machine, and then "git push" succeed (it asked for my username/password for the GitLab)! I am not sure what the root cause is, network issue?

Any help will be really appreciated, thanks!

Assignee
Assign to
Time tracking