brew install quorumcontrol/dgit/dgit
Or brew tap quorumcontrol/dgit and then brew install dgit.
Or install via URL (which will not receive updates):
brew install https://raw.githubusercontent.com/quorumcontrol/homebrew-dgit/master/Formula/dgit.rb
brew help, man brew or check Homebrew's documentation.