/ Published in: Bash
Expand |
Embed | Plain Text
# Install Git yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel wget http://kernel.org/pub/software/scm/git/git-1.7.3.2.tar.bz2 tar xjvf git-1.5.2.3.tar.bz2 cd git-1.7.3.2 # Git init dir git init git add -A git commit -m "Initial commit" # Clone as bare git clone --bare .git /var/git/new_repo.git # Add remote git remote add origin /home/bob/myrepo.git # Untrack a file git rm --cached -r . # Deny all access <Directory /> Deny from all </Directory>
You need to login to post a comment.
