now the ajax call back will do perform git merge.
the sample hook function after git merge.