Home > Mobile >  unable to git clone, pull or push private repo of our company on remote linux server
unable to git clone, pull or push private repo of our company on remote linux server

Time:11-17

I have been working with a repo on a remote ubuntu server for last one week and I was able to pull, push changes to company repo with no problem until 1 day ago. I am using it with personal access token.

I created a new personal access token and changed it it still does not work. I deleted git and git credentials and set the again but it still does not work. And additionally I tried to set my github password and I am still unable to progress. I cannot even clone any repository from company repos on anywhere on the remote server. I am able to clone, pull, push on my personal computer. My ~/.gitconfig setting on remote is like this right now

[user]
    name = ****
    email = ****
    token = ghp_****
    password = *****

Additionaly when I do both following lines

git clone https://[email protected]/company/repo.git
git clone https://github.com/company/repo.git

I get the following line on remote but never says anything. I tried with --verbose it still says nothing and get stuck in this forever until canceled. I tried these with only password, token etc. and waited like up to 10 minutes couple of times in each no progress.

Cloning into 'repo'...

and when I try same command in my computer it asks password and proceeds with no problem.

I tried to delete git and resetting all global configs. Deleted added new remote. changed repo configs etc. Still not working. and It does not even give any log. But it works for public repos. My account private(not company private) repos. I have no idea why this does not work. I am unable to push changes I made or pull other's changes.

I am using VSCode as well on remote I tried to delete/restart/reinstall/reset all extensions but no luck there as well.

I am using mac as PC and Ubuntu 20.04 as remote server.

CodePudding user response:

Issue fixed itself. After weekend when I come back to work and try to git sync and it asked for both username and password(git token in my case). The issue no longer exist. But I have no idea why issue existed in the first place.

  • Related