I'm new to GCP, and am trying to git push my repo to a GCP Compute Engine running Debian.
I download the gcloud command tool and ran
gcloud compute config-ssh
Which gave me as ouput ssh golub-vm.us-west1-a.golub-182114.
After that I did an
gcloud compute ssh golub-vm
And created a remote bare git repo at ~/apps/golub/golub.git So I added it as a remote to my local repository via:
git remote add gsrvr golub@golub-vm.us-west1-a.golub-182114:/apps/golub/golub.git
and tried a push, but I'm getting an
D:\golub>git push gsrvr master
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Note: I made sure that /apps/golub/golub.git is owned by golub:root. What am I doing wrong?
Oh and I tried to use gcloud compute scp to copy a local file to the server, it works fine, so it shouldn't be any issues with the ownership, right?
I'm running a Bitnami LAMP image. So the full path would be /opt/bitnami/apps/golub/golub.git