Lazer Lazer - 4 months ago 14
Git Question

How can I upload fresh code at github?

I have a directory with all my coding projects.

I want to upload (correct terminology?) it to GitHub using the command line.

I have already looked at Old question.

I know how to clone an existing project, and how to push it after making any changes.

But in this case, I want to make a new project and add files to that.

How can I accomplish this using the command line?

git init
git add .
git commit -m "Initial commit"

After this, make a new GitHub repository and follow on-screen instructions.