Skip to content

Instantly share code, notes, and snippets.

@ruanjf
Created August 2, 2013 07:43
Show Gist options
  • Save ruanjf/6138147 to your computer and use it in GitHub Desktop.
Save ruanjf/6138147 to your computer and use it in GitHub Desktop.
git 服务器安装
rpm -qa curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel python-setuptools
wget https://git-core.googlecode.com/files/git-1.8.3.tar.gz
rpm -qa python-setuptools
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/python-setuptools-0.6c5-2.el5.noarch.rpm
wget https://git-core.googlecode.com/files/git-1.8.3.tar.gz
tar xzvf git-1.8.3.tar.gz
cd git-1.8.3
autoconf
./configure
make
make install
useradd -r --shell /bin/bash git
useradd -r -d /opt/git --shell /bin/bash git
git clone git://github.com/sitaramc/gitolite.git
ssh-keygen
cp .ssh/id_rsa.pub gitadmin.pub
gitolite setup -pk gitadmin.pub
git clone git@192.168.14.100:gitolite-admin
# add user
mv rjf.pub gitolite-admin/keydir/
git config --global user.email "runjf@qq.com"
git config --global user.name "admin"
git add .
git commit -am "add user rjf"
git push
git remote add origin git@192.168.14.100:cms/RJ-CMS7
git clone git@192.168.14.100:cms/RJ-CMS7
git svn clone --username=rjf svn://192.168.14.90/new_cms/RJ-CMS7
git@192.168.14.100:users/rjf/tw
git diff --name-status HEAD^ -- ./src/main/webapp
http://192.168.4.198:9080/op.jsp?d=D:\product\apache-tomcat-6.0.36-stop-start\bin\startup.bat
http://192.168.4.198:9080/op.jsp?d=D:%5Cproduct%5Capache-tomcat-6.0.36-stop-start%5Cbin%5Cstartup.bat
git rebase origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment