Today we delve into the world of git push, one of the most often used git
tools. git push is typically used to update a remote ref and associated
objects based on a local ref – in other words, to push your local changes to an
upstream repository – but you can also use it to create or delete remote
branches and much, much more! actually, that’s about it.
Taking some inspiration (and code) from the quirky but lovable why’s original
post on adding yer custom blocks to RedCloth and
the inimitable Geoff Grosenbach’s foray into the world of
custom textile figure tags,
we’re going to implement a customer textile tag for our blog’s thumbnail
images.
The easiest way to prevent a broken build is to run your tests before you
commit. This can be done with a simple git hook. Preventing your developers
(and yourself) from breaking the build is as simple as putting this in your
.git/hooks/pre-commit and making it executable: chmod +x
.git/hooks/pre-commit.