1

I tried to configure VPS with GitLab that I installed from Digital Ocean.

Everything works fine excepts from git pushing and pulling. when I use this command:

git push -u origin master

the result that I'm getting is:

git@(ipAddress)'s password: [my password]
sh: 1: git-receive-pack: not found
fatal: Could not read from remote repository

Please make sure you have the correct access rights and the repository exists.

Roham Rafii
  • 2,929
  • 7
  • 35
  • 49
Itay
  • 337
  • 5
  • 22

1 Answers1

0

For your question :

In the working directory follow the command

git remote # this will tell you the remote repo

then

git remote rm branch

Then add your current repo like

git remote add origin git remote add origin https://github.com/user/repo.git

Raja Simon
  • 10,126
  • 5
  • 43
  • 74