0

I am having this wierd issue with Git. This is what I did:

  • I created a new project in VS Community 2017
  • From Git Bash, I did git init in the root directory of my new created project
  • I added new files and did some coding
  • I created a new repository MVVM_Template (same as the local project name) on my github account
  • I followed the instructions in Adding an existing project to GitHub using the command line

Result:

Me@MyPC MINGW64 ~/source/repos/MVVM_Template (master) $ git remote add origin https://github.com/MeOnGithub/MVVM_Template.git fatal: remote origin already exists. Me@MyPC MINGW64 ~/source/repos/MVVM_Template (master) $ git push -u origin master remote: Repository not found. fatal: repository 'https://github.com/MeOnGithub/MVVM-Template.git/' not found 

So remote origin already exists, but Repository not found.

How can I resolve this?

1 Answer 1

1

I think you've spelled something wrong? Looks like the actual repository has a different name than what you've set the remote to. Is it MVVM_Template or MVVM-Template?

Sign up to request clarification or add additional context in comments.

7 Comments

it is underscore and not dash, both local and on the repository. but it errors out as dash. hmm I will try remove it. Thanks for pointing it out.
I removed dashes and underscores, and it worked. This was very weird and thanks.
It should definitely work with dashes or underscores. If you were typing by hand, I suspect you may have accidentally used a dash when you initially did git remote add origin. Anyway, I'm glad you resolved this!
Don't have enough rep to comment on your other post. It would be helpful if you can elaborate on "I have not succeeded yet." Where did you get stuck? What errors did you run into? You don't mention setting remotes for the CoffeeMaker repo
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.