Find the last two commits by:
git log -2 --format=oneline --reverse
Then run the hook by:
echo "[from-commit-id] [to-commit-id] master" | ./hooks/post-receive
| package org.mule.example.cep; | |
| import org.mule.api.MuleMessage; | |
| import org.mule.api.MuleMessageCollection; | |
| import org.mule.api.client.MuleClient; | |
| import org.mule.tck.FunctionalTestCase; | |
| import org.mule.util.CollectionUtils; | |
| import java.util.*; |
Find the last two commits by:
git log -2 --format=oneline --reverse
Then run the hook by:
echo "[from-commit-id] [to-commit-id] master" | ./hooks/post-receive
Change site settings here
sudo nano /etc/nginx/sites-available/default
Check that the config file syntax is OK
sudo nginx -t
Restart Nginx
| #!/bin/sh | |
| # This script: | |
| # 1. Creates a bare git repo in /opt/[name-of-repo] | |
| # 2. Clones the bare git repo to a "live" location | |
| # 3. Creates a post-receive hook script | |
| # | |
| # Command line usage: | |
| # the-name-of-this-file name-of-repo |
| With marked text, ctrl + shift + l, makes all occurances editable. | |
| With marked text, alt + shift + i, put edit cursor at end of each line |