-2

To be completely clear, I imported some source code from FrontEndMentor to work on an exercise using HTML and CSS. I imported the folder from the source code into my VS Code and began to complete the challenge. Once I reached a point where I wanted to push my code into Github, I made a new Github repo for it so I would be able to do so. I followed the instructions it usually gives for creating a repo from the command line, but I always kept receiving the message: fatal: the current branch main has no upstream branch. To push the current branch and set the remote as upstream, use "git push -set-upstream origin main" which I did. I then receive another fatal message that, not only is the repository not found, but it's trying to find one that doesn't even exist.


Here's some of the command line code I've been trying


Here's what the file setup looks like

I kept deleting the integrated terminal and opening it back up, but I continued to experience the same problem. I even deleted the repo itself and renamed it to more accurately reflect the local repo's name to see if that would do anything, but to no avail.

  • 2
    Can you edit your question to include what you've tried as a code sample instead of an image? See this discussion: https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors – Quack E. Duck Aug 07 '23 at 22:30
  • Please take note of comment from Quack E. Duck above. Your attempt to update the remote 'origin' failed so when you pushed it did not have the one you wanted. Take a look at `git remote -h`. Either remove the existing setting for 'origin' first or use `git remote set-url origin `. – Alan Carlyle Aug 08 '23 at 04:03

0 Answers0