You can use this repo to download your scripts as well, and then you can set up a git repo using the instructions on github for existing repos. You'll want some way of pushing code back to screeps - check the uploaders section here.