建立自己的git repository

 

环境是windows

1.首先安装Git,下载Git安装包,这个google 就好了

2.注册自己的git账号 https://github.com

 

3.建立仓库

 

填好名字 最后那个Initialize this repository with a README 最好勾上

 

4.克隆仓库

打开安装好的Git  Bash 用命令行进行操作

cd 进入你事先创建好的文件夹 如: cd d:/Test

git clone https://github.com/hankym/python.git 

也就是从服务器上download文件下来,https://github.com/hankym/python.git 这个地址可以在你创建的repository下复制到

可以添加新文件,上传到服务器

git add test.txt

git commit -m 'first_commit'

git push origin master

成功后,你就可以看到你的 github账号上对应的repository下多出的文件

 

posted on 2015-06-07 22:03    阅读(1942)  评论(0编辑  收藏  举报

导航