Skip to content

Git push does not work #22049

Answered by byrneh
Imbrosci asked this question in New to GitHub
Discussion options

You must be logged in to vote

This command is telling git to use ssh protocol not https

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

If you want to try ssh follow the github instructions will alos explains how to create and add your needed ssh keys.

Using https make sure you have removed any cached credentials from local Credential manager . You should be prompted for credentials and enter your PAT not your password for successful authentication

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants