How to setup global git hooks

What is a Git Hook

Git hooks are basically bash scripts which are going to run before or after a git command is run.
By default git hooks are located under /usr/share/git-core/templates. If you are using brew for
managing your git, then the location of the default hooks will be under the folder: usr/local/Cellar/git/VERSION/share/git-core/contrib/hooks.
In these folders you can see examples of them.

What I use git hooks for

Continue reading How to setup global git hooks

Git Rebase to keep a clean history

Since I started working on TinyMCE here at ephox, I found the importance of commands I never used in previous project.
The goal here it’s to keep the history of the repository as clean as possible, to keep a meaning when somebody in the future is going to look at that history.
Git has all the tools needed for the job of course. The path we chosen it’s to use the git rebase command.

git rebase master
git checkout master
git merge forkedBranch