Derell,

It's not too hard, but like you say, it's easy to end up in the wrong place.

Key points:
1.You do need to create the empty repo on Github so that you can get a URL.
2. The default github creation doesn't produce that empty repo
3. you need to explicitly make sure that it's empty.


See
https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

The step 1. of the link says " To avoid errors, do not initialize the new 
repository with README, license, or gitignore files" which is what you need!

Hope that helps

Philip
  ----- Original Message ----- 
  From: Derell Licht 
  To: Git for human beings 
  Sent: Saturday, December 03, 2016 3:53 PM
  Subject: [git-users] problem creating new repository on Github


  I have an existing public account on Github, with several repositories on it. 
 All operations work on these repositories except one: I had to create each 
initial repository from the Github website.

  So now I'm adding another repository, but I *really* want to learn the 
correct way to create it entirely from my local site.
  The repository is called LedScroll; I've already created the local 
repository, with 30 files added and committed.

  C:\SourceCode\win32\LedScroll Yes, Master?? > git status
  On branch master
  nothing to commit, working directory clean

  The I attempted to create the remote repository, and push my repository to it:

  C:\SourceCode\win32\LedScroll Yes, Master?? > git remote add origin 
https://github.com/DerellLicht/LedScroll.git

  C:\SourceCode\win32\LedScroll Yes, Master?? > git remote -v
  origin  https://github.com/DerellLicht/LedScroll.git (fetch)
  origin  https://github.com/DerellLicht/LedScroll.git (push)

  C:\SourceCode\win32\LedScroll Yes, Master?? > git push -u origin master
  remote: Repository not found.
  fatal: repository 'https://github.com/DerellLicht/LedScroll.git/' not found

  And indeed, my Github site does not show LedScroll as existing.
  So what am I doing wrong???



  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to [email protected].
  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to