I'm newly at Git. And I tried to create my first repo and push project.
I'm creating step by step to the Create A Repo.
But after I tried to push my project to the empty repo I caught next:
fatal: remote origin already exists
Here is my steps:
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:nazar-art/NewYearGift.git
git push -u origin master
And exactly here I caught this fatal.
I tried git remote -v to see content of remote repo. Here is result:
origin https://github.com/nazar-art/NewYearGift.git (fetch)
origin https://github.com/nazar-art/NewYearGift.git (push)
I couldn't figure out what I'm doing wrong and how to fix this issue?
- How to solve this trouble?