Git post-commit hook to keep master and gh-pages branch in sync :
In your Git repository create a file .git/hooks/post-commit and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master
| // This will open up a prompt for text to send to a console session on digital ocean | |
| // Useful for long passwords | |
| (function () { | |
| window.sendString = function (str) { | |
| f(str.split("")); | |
| function f(t) { | |
| var character = t.shift(); | |
| var i=[]; | |
| var code = character.charCodeAt(); | |
| var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/); |
| >>> import pytz | |
| >>> | |
| >>> for tz in pytz.all_timezones: | |
| ... print tz | |
| ... | |
| ... | |
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers |
Git post-commit hook to keep master and gh-pages branch in sync :
In your Git repository create a file .git/hooks/post-commit and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master