Push existing project into Github

I have a folder with my project sources. How I can push this project into Github’s repository?

I tried using this steps:

  1. I created empty repository on GitHub.
  2. I run git-bash and typed git init, so inside project root appeared .git folder.
  3. I added some files to version control using git add sourcesFolderName
  4. I committed files added in previous step using git commit -m "initial commit"
  5. I specified remote repository using git remote add MyProject <url>
  6. Finally git push, but nothing is pushed to remote repo… (no authorization failure)

So how I can push existing sources into newly created github repo?

18 Answers
18

Leave a Comment