Your Ad Here

Posted By

kayue on 12/31/10


Tagged


Versions (?)

Git


 / Published in: Bash
 

  1. # Install Git
  2. yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
  3. wget http://kernel.org/pub/software/scm/git/git-1.7.3.2.tar.bz2
  4. tar xjvf git-1.5.2.3.tar.bz2
  5. cd git-1.7.3.2
  6.  
  7. # Git init dir
  8. git init
  9. git add -A
  10. git commit -m "Initial commit"
  11.  
  12. # Clone as bare
  13. git clone --bare .git /var/git/new_repo.git
  14.  
  15. # Add remote
  16. git remote add origin /home/bob/myrepo.git
  17.  
  18. # Untrack a file
  19. git rm --cached -r .
  20.  
  21. # Deny all access
  22. <Directory />
  23. Deny from all
  24. </Directory>

Report this snippet  

You need to login to post a comment.