0

I followed these steps: https://help.github.com/articles/generating-ssh-keys

now, I want to create a folder in my github account, is called: "TODO_LIST", and push my project into this folder.

what I should do? I'm located in the folder I want to add.

should I need to do something like the next following?

$ git init $ git add . $ git commit -m 'first import' $ git remote add origin [email protected]:alonshmiel/TODO_LIST.git $ git push origin master 

p.s, I have two SSH keys in my account because I push from two computers.

1
  • 1
    You don't need different SSH keys for different computers: just copy one of them to the other computer. Commented Dec 25, 2012 at 10:15

1 Answer 1

3

This is explained in the Create a Repo help page:

Every time you make a commit with Git, it is stored in a repository (a.k.a. "repo"). To put your project up on GitHub, you'll need to have a GitHub repository for it to live in.

[...]

Click New Repository.

Fill out the information on this page. When you're done, click "Create Repository."

[...]

git init # Sets up the necessary Git files git add README # Stages your README file, adding it to the list of files to be committed git commit -m 'first commit' # Commits your files, adding the message "first commit" 

[...]

git remote add origin https://github.com/username/Hello-World.git # Creates a remote named "origin" pointing at your GitHub repo git push origin master # Sends your commits in the "master" branch to GitHub 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.