Skip to content

Https authorization to github #2724

Closed Answered by martinvonz
SebastianMpl asked this question in Q&A
Discussion options

You must be logged in to vote

I never use http authentication myself, but I think it should be the same username and password as you would use with git push.

I think most people use SSH for pushing, and usually combined with ssh-agent. The instructions for that seem to be here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.

It looks like we don't have a single command for updating the remote URL associated with a remote, so I think you'll have to do jj git remote remove origin followed by jj git remote add origin <SSH URL copied from GitHub repo>.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SebastianMpl
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
Category
Q&A
Labels
None yet
2 participants