Skip to content

Instantly share code, notes, and snippets.

View albertone's full-sized avatar

Alberto albertone

  • Almería
View GitHub Profile
@albertone
albertone / post-checkout
Created September 7, 2017 13:49 — forked from glensc/post-checkout
auto update composer on git branch switch
#!/bin/sh
# https://git-scm.com/docs/githooks
#
# This is hook that updates composer
# if branch change included change in composer.json
#
# additionally, if vendor dir is under (separate!) git repo,
# the result can be speed up by switching and keeping git branch up to date
# there as well.