I am in a Git repository:
$ cd /Users/me/dev/example
$ git status
On branch master
nothing to commit, working tree clean
$ pwd
/Users/me/dev/example
I ran these:
gcloud compute config-ssh
ssh example.us-west2-a.project
I even installed git on the remote instance:
sudo apt-get update
sudo apt-get -y install git
I added the remote like this:
git remote add google example.us-west2-a.project:$(pwd)
But when I git push google master
, I get this:
fatal: '/Users/me/dev/example' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What is going wrong, how do I git push to my google instance without first creating the repo manually on the instance?