想不到通过http来做git clone竟然是这么简单: Say wants to do below clone: git clone git+ssh://git.fedorahosted.org/git/anaconda.git 如果通过http,则 export http_proxy=http://ipaddr:port git clone http://git.fedorahosted.org/git/anaconda.git That's all! 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8059/showart_1713921.html
在ubuntu下安装git的过程,一般系统没有安装zlib.h所以要自己安装[code]首先下载git包: $ cd ~/tmp $ wget http://www.kernel.org/pub/software/scm/git/git-1.6.0.2.tar.gz 解压: $ tar xvzf git-1.6.0.2.tar.gz Build它: $ cd git-1.6.0.2 $ ./configure --prefix=/usr/bin $ make 然后看见了错误 "zlib.h No such file or directory" zlib.h 包含在 zlibg1-dev中; openssl/rand.h 包含在 libssl-dev中,系统没装。OK, 安装~ ...
1. install a git server & initialize a repository install git-core $ apt-get install git-core check the path of git-shell $ which git-shell /usr/bin/git-shell add some users which can access the git server via the git-shell $ sudo useradd -m -s /usr/bin/git-shell git $ sudo passwd git (you can add more users as above) initialize a git repository: foo $ sudo mkdir /home/git/foo $ cd /home/git/foo $...
我想写一个 可以在 android source code 目录底下所有有 .git 的目录下 用 git status 或是 repo status 检查哪些文件有modify, 再把这些有modify的文件全部copy 到 a 目录 请问这样大概要怎么写? 谢谢
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6 http://git.or.cz/gitwiki/gitDocumentation http://linux.yyz.us/git-howto.html http://www.bitsun.com/documents/gittutorcn.htm 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52215/showart_1385959.html
本帖最后由 renxiao2003 于 2010-07-26 12:29 编辑 公司最近准备启用git来管理公司项目,在CTO张头的带领下,历经挫折,终于完成了git服务器的配置工作。在使用git之前,大家首先要明确几个概念:git服务器、git客户端和git服务器管理员。本文中使用ubuntu当作git服务器,pcA和pcB分别作为服务器管理员和git客户端。通常,git服务器上需要安装OpenSSH Server、git、gitosis和Apache2(如果想使用gitweb的话)。 本文将主要介绍...
用了很久git了,没出过问题。今天出了。。。 root@root:/home/root/aa# mkdir m root@root:/home/root/aa# git status . # On branch my nothing to commit (working directory clean) 此时对新增文件的git add/git commit 都会失效,貌似git看不到这些变化了?
本帖最后由 yshihyu 于 2012-07-05 00:18 编辑 我写一个 script 可以在 android source code 目录底下所有有 .git 的目录下 用 git status 或是 repo status 检查哪些文件有modify, 再把这些有modify的文件全部copy 到 a 目录 请问这样script 大概要怎么写? 谢谢