Skip to content

Exercise 2: link to GitHub #8

Answered by Sonia-Heye
Sonia-Heye asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
Thanks for your tip! Changing the user name didn't work for me and I'm not entirely sure which action fixed my issue in the end, but I think it was this:
git remote set-url origin https://github.com/<user_name>/<repo_name>.git - instead of: git remote add origin.
I then had to authorize the access on GitHub and I guess this set up a connection between my local git and my GitHub account and thereafter git push -u origin main worked for me too.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sonia-Heye
Comment options

Answer selected by Sonia-Heye
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