在Dreamhost主机上搭建Git

假设你已经在本地搭建了一个git repository,现在需要把它上传到dreamhost主机上提供给别人pull,并方便自己在不同电脑上更新使用。这是我目前用的方法,当然首先你得先知道以下东西(以下内容均为假设,表胡猜我的帐号,密码了:D)

  • DH主机名: montty (假设)
  • DH用户名: hades (需开通shell操作权限)
  • 本地Git repo: /home/hades/software

1.在DH主机上安装Git

ssh登陆DH主机,在主目录下进行以下操作安装Git

$ mkdir src && cd src/
$ wget http://kernel.org/pub/software/scm/git/git-1.5.4.4.tar.gz
$ tar xzvf git-1.5.4.4.tar.gz
$ cd git-1.5.4.4
$ ./configure --prefix=/home/hades/ NO_CURL=1 NO_MMAP=1
$ make && make install

Read More

You Might Know

This site is powered by WordPress CMS & hosted by Dreamhustle Dreamhost.

And the theme is inspired by WP Typo and completely crafted under Gentoo Linux with VIM editor.

Sponsors

Monthly Archives

Search