1>>> repo = g.get_repo("PyGithub/PyGithub")
2>>> contents = repo.get_contents("test.txt", ref="test")
3>>> repo.update_file(contents.path, "more tests", "more tests", contents.sha, branch="test")
4{'commit': Commit(sha="b06e05400afd6baee13fff74e38553d135dca7dc"), 'content': ContentFile(path="test.txt")}
5