Cannot add github as a remote repository

I have a repo on my home git server. I would like to add a remote repo on github. I tried following the instructions, and got cryptic error messages:

charles@hawk:~/versioned/bare.metal$ git remote add github https://github.com/charlescurley/bare.metal.git
charles@hawk:~/versioned/bare.metal$ git remote -v
github	https://github.com/charlescurley/bare.metal.git (fetch)
github	https://github.com/charlescurley/bare.metal.git (push)
origin	ssh://gitolite/bare.metal (fetch)
origin	ssh://gitolite/bare.metal (push)
charles@hawk:~/versioned/bare.metal$ git push github master
Username for 'https://github.com': charlescurley
Password for 'https://charlescurley@github.com': 
remote: Repository not found.
fatal: repository 'https://github.com/charlescurley/bare.metal.git/' not found
charles@hawk:~/versioned/bare.metal$ 

Simple question first: Does that repository already exist on GitHub? I can’t see it on your profile, but that could also be because it’s private. If it doesn’t, you’ll have to create it on GitHub first and then try pushing again.

Ah, thank you. That helped.

Github documentation seems to assume that one is a git guru. I am not.

1 Like

@charlescurley
I am a newbie to TortoiseHg.
The problem is the GitHub .com server message:

nskold doesn’t have any public repositories yet.

Please help.
See the .png file below.
My local repositories showed no errors.

TortoiseHg

version 5.7

with Mercurial-5.7, Python-2.7.18, PyQt-5.13.2, Qt-5.9.9

Thank you,

Arthur Lenskold

(716)444-6675 before 7pm Eastern Daylight Time