Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. sudo -u git ssh-keygen -f /home/git/.ssh/reponame_key
  2.  
  3. Host reponame
  4. IdentityFile /home/git/.ssh/reponame_key
  5. HostName github.com
  6. User git
  7.  
  8. cd /home/git/repositories/namespace/reponame.git
  9.  
  10. git remote add --mirror github reponame:youruser/reponame.git
  11.  
  12. cd /home/git/repositories/namespace/reponame.git/hooks
  13.  
  14. echo "exec git push --quiet github &" >> post-receive
  15.  
  16. chmod 755 post-receive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement