Added function publish_git_repo. Seems to work properly. Add some tests.