Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo -u git ssh-keygen -f /home/git/.ssh/reponame_key
- Host reponame
- IdentityFile /home/git/.ssh/reponame_key
- HostName github.com
- User git
- cd /home/git/repositories/namespace/reponame.git
- git remote add --mirror github reponame:youruser/reponame.git
- cd /home/git/repositories/namespace/reponame.git/hooks
- echo "exec git push --quiet github &" >> post-receive
- chmod 755 post-receive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement