Save state to github