Skip to content
快捷导航

git报错记录

问题:Git: git@gitlab.com: Permission denied (publickey)

It’s most likely becuase your SSH key wasn’t “unlocked”.

On Mac after creating an SSH key you can add it to the keychain with:

ssh-add -K ~/.ssh/[your-private-key]

And in ~/.ssh/config you add:

Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/[your-private-key]

So it knows where to look, and this will also make it so you don’t need to enter the passphrase each time, and thus VSCode is allowed to use they key, cause it’s unlocked not just when you’re pushing through CLI.

问题:fatal: unable to access 'https://github.com/zericsong/growthup.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

git config --global --unset-all remote.origin.proxy