2012-12-25 63 views
0

我按照这些步骤:https://help.github.com/articles/generating-ssh-keys推我的项目的GitHub

现在,我要创造我的github帐户的文件夹,被称为:“TODO_LIST”,并把我的项目到这个文件夹。

我该怎么办?我位于我要添加的文件夹中。

我是否需要做类似下面的事情?

$ 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,我在我的帐户两个SSH密钥,因为我从两台电脑推。

+1

你并不需要为不同的计算机不同的SSH密钥:只是复制其中一个到其他计算机。 – Confusion

回答

3

这在Create a Repo帮助页面说明:

你与混帐提交时,它都会被存储在存储库(又称“回购”)。把你的项目了GitHub上,你需要有一个GitHub的仓库为它居住。

[...]

点击新的存储库。

填写此页面上的信息。完成后,点击“创建存储库”。

[...]

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