Created
August 2, 2013 07:43
-
-
Save ruanjf/6138147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected]:gitolite-admin | |
# add user | |
mv rjf.pub gitolite-admin/keydir/ | |
git config --global user.email "[email protected]" | |
git config --global user.name "admin" | |
git add . | |
git commit -am "add user rjf" | |
git push | |
git remote add origin [email protected]:cms/RJ-CMS7 | |
git clone [email protected]:cms/RJ-CMS7 | |
git svn clone --username=rjf svn://192.168.14.90/new_cms/RJ-CMS7 | |
[email protected]: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