Zeppelin + GitHub - Auto Push?

Asked by At

I know in Zeppelin you can utilize Git on your notebooks. I also know how to take that local git repos and push it up to Github. But from what I've seen in the Zeppelin app, users can commit all they want, but those commits stay local until you go in and push the local up to GitHub. My question is, when a user commits inside the Zeppelin app, can a push be done automatically to GitHub as well?

1 Answers

VonC On Best Solutions

You could setup a post-commit hook as in here in order to push automatically after each commit.

Go to your local repo, in the .git/hooks folder, and create a post-commit file, make it executable, and add:

git push origin master

The next commit (even from the Zeppelin app) will trigger a push.