Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Keep in mind that GitHub is never actually accessing your servers. It’s up to your 3rd party integration to interact with deployment events.

A paragraph or two down the page you linked.



Yeah, but that's the important bit. After that you (probably) just need a few lines of code:

    import git
    import fs
    handle = fs.open('config.php', 'w+')
    config = handle.read()
    git.start('./')
    git.auth('rsa_pub')
    git.clone('git@github.com:foo/bar.git')
    git.remove_untracked()
    handle.write('config.php', config)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: