Https://www.codecademy.com/paths/computer-science/tracks/cspath-development-skills/modules/learn-git-git-workflow-u/articles/getting-started-git-and-github

Hello, I am having trouble by pushing the local repository to github.
I have successfully completed all the previous steps shown in the video and the article. However when pasting this line of code to push the repository: git remote add origin https://github.com/username/git_practice.git

This error shows up: fatal: remote origin already exists.

and when pasting the second code line:

git push -u origin master

it requires my username and password, it is my understanding that not being able to watch any character when typing you password is normal. But I was wondering what can I do to correct this errors.

this error shows up:

remote: Repository not found.

fatal: repository ‘https://github.com/your/repository/’ not found

Please help. Thank you in advance. Also in the meanwhile I decided to install github desktop and I don’t know if I should be concern for some privacy issues or something. Would appreciate any comment or solution.

Hi @jasonstuardoruizmart

That error code (fatal: remote origin already exists) is telling you the issue, you have already have a remote saved with that name. If you remove it, git remote rm origin and then add a new one with the correct repo link (with the correct username etc.)- git remote add origin https://github.com/--usernamegoeshere--/git_practice.git you could continue with that lesson.

1 Like

Thanks. That really solved the problem

1 Like