学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年11月11日

摘要: 使用git的时候难免会用到remote tracking,下面简要记录一下在使用git remote时的一些技巧(1)add $git remote add origin https://github.com/ask/celery.git 注:暂以celery的git作为示例,celery是一个挺不错的Distributed Task Queue,有很多值得学习的地方,在此也顺便推广一下celery(2) show remote $git remote show origin 通过$git remote show origin来得到remote中的所有branch列表(3)fetch... 阅读全文
posted @ 2011-11-11 17:55 Jerry.Kwan 阅读(6647) 评论(0) 推荐(0) 编辑

摘要: 访问Git时使用Git协议是最高效的,虽然也存在一些缺陷,主要是没有访问权限的控制,但在可信环境下对速度和效率有较高要求时直接采用git协议还是可以考虑的在采用Git协议搭建Public Repository时需要注意的事项有:(1)安装git-daemon,并确保git-daemon所使用的端口(9418)允许accept,这个可以在iptables中配置(2)创建一个bare repository,可以通过clone来实现,例如$ git clone --bare ~/proj proj.git(3)在repository中创建git-daemon-export-ok文件,以允许git-d 阅读全文
posted @ 2011-11-11 09:04 Jerry.Kwan 阅读(675) 评论(0) 推荐(0) 编辑