首页 > 其他 > 详细

建立自己的git repository

时间:2015-06-07 23:19:18      阅读:341      评论:0      收藏:0      [点我收藏+]

 

环境是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下多出的文件

 

建立自己的git repository

原文:http://www.cnblogs.com/yemeng/p/4559229.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!