Redhat默认的源不但速度不给力,而且软件版本陈旧,今天试着将Redhat默认源替换为CentOS的163源,发现速度能达到2M/s左右,而且版本都比较新,非常给力,与大家分享! (目前可以使用CentOS0-6.3软件仓库的软件)...

克隆git库: git clone xxx@188.188.1.2:/work/projects/yyy cd yyy git fetch origin 查看远程分支: git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/orig...

当git clone之后,直接git pull它会自动匹配一个正确的remote url 是因为在config文件中配置了以下内容:  [branch "master"]      remote = origin      merge = refs/heads/master  表明: 1.git处...

0

git 恢复单个文件

Posted in git at 九月 6th, 2011 / No Comments »

如果你只是要恢复一个文件(修复未提交文件中的错误),如”hello.rb”, 你就要使用 git checkout $ git checkout -- hello.rb http://www.gagahappy.com/git-checkout-file/

0

GIT 的基本使用

Posted in Linux at 六月 30th, 2011 / No Comments »

2 简介GIT是一个分布式的版本控制系统。 分布式的意思是它不依赖一个中央服务器,每个开发者clone得到的仓库都包含了完整的变更记录。   3 GIT 的四种协议file: 只能访问本地repository git:后台运行git-daemon...

0

sles10.1 ppc64编译git报错

Posted in PHP at 六月 23rd, 2011 / No Comments »

sles10.1 ppc64的安装源中没有git,下载了git的源码进行编译,make的时候报错: linux:~/git-1.7.5.4 # make all     CC daemon.o In file included from daemon.c:1: cache.h:18:18: error: zlib.h: No such ...