您的位置:首页 > 编程语言

创建github仓库

2014-06-05 22:04 176 查看
第一次提交的过程:

1.首先在 https://github.com 上面创建github仓库。

2.进入到你本地工程目录下面,打开git bash

3.首先初始化本地仓库,在git bash中输入: git init

4.其次添加所有的本地文件到本地仓库的索引中:git add .

5.从本地索引中提交到本地仓库:git commit -m “这是我提交的内容”

6.链接https://github.com上的仓库:git remote add akon git@github.com:xcz1899/words.git

7.从本地仓库提交到https://github.com上的仓库:

git push -u akon master

第二次提交的过程:

1.添加所有的本地文件到本地仓库的索引中:git add .

2.从本地索引中提交到本地仓库:git commit -m “这是我提交的内容”

3.从本地仓库提交到https://github.com上的仓库:

git push -u akon master

参考资料:http://rogerdudler.github.io/git-guide/index.zh.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: