Push code straight from VSCode to Anvil

What I’m trying to do:
Use the built in VSCode Git functionality to commit and push code from my local machine to Anvil.

What I’ve tried and what’s not working:
I’ve gotten commits to work without any setup after git cloning my Anvil Repo, but every time I click ‘Sync Changes’ in VSCode, I get this error:

duncan_richards12@yahoo.com@anvil.works: Permission denied (password,keyboard-interactive,publickey).
fatal: Could not read from remote repository.

Has anyone found where to set your Anvil password so I don’t have to push from the terminal?

Hi @duncan_richards12,

you should use an SSH tunnel for that.
Basically you need two ish steps to establish such a connection.

  1. (Create a github account if you don’t have one)
  2. Do exactly as described here. This will create an ssh key and add it to you github account.
  3. Copy the same public key you copied into Github into anvil.
    (See docs here)

I’m no expert user in ssh and github but if you follow the steps above closely this should work like a charm in 15 minutes or so.

Good Luck!:wink:
Mark