How to test git hooks

Answer this four-years-old question. If you’d like to test hook, you need to test in local environment first, I give the detail commands for following up, use post-receive as sample: $ mkdir /tmp/hook_test $ cd /tmp/hook_test # set local git repo, where you put hooks in it. $ git clone –bare https://github.com/git/git.git # set develop … Read more

Git Post-Receive Hook for Website Staging

The answer to your question is here: http://toroid.org/ams/git-website-howto In short, what you want to do is add a “detached work tree” to the bare repository. Normally you think of your work tree as containing the .git directory. Bare repositories do not have a work tree by definition, but you can create one as long as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)