You can refer to the official GitHub "Error: Repository not found" listing the main reasons:
- spelling
- permissions
- ssh access (that is, if you have used an ssh url)
- existence of the repo
In your case, the origin url is wrong:
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
In your case:
git remote set-url origin https://github.com/Flock1/Udacity.git
That won't change anything about the repo: you can add an push.
That is: you clone a full repo, not a folder within the repo.
error: failed to push some refs to 'https://github.com/Flock1/Udacity.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart
If your working tree is clean (meaning if git status
reports there is no modification or untracked file), do:
git pull --rebase
git push
That will replay your commits on top of the updated upstream remote repo.