How do I do an initial push to a remote repository with Git?

I’ve read through countless tutorials and I keep coming up short. Here’s what I’ve got:

  • I’m running RubyMine on my Windows desktop
  • I’ve installed Git on my WebFaction hosting account per their instructions
  • Git appears to be working fine on both machines

Here’s what I’m doing:

  1. On server:
    • mkdir project
    • git init
    • git add .
    • git commit #==> nothing to commit
  2. On client:
    • Create new project in RubyMine
    • Git init in top directory of project
    • Push changes to server #==> failed to push some refs to...

What steps am I missing?

10 Answers
10

Leave a Comment