git post-update script does not work

后端 未结 3 1753
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-06 08:52

After editing my old question a few times, I make a new one because it is a new question now.

In .git/hooks/post-update I have:

echo \"a         


        
3条回答
  •  半阙折子戏
    2021-01-06 09:36

    Did you try to use the post-receive hook instead? Maybe something is not yet finished in the post-update and that is why the merge is not working.

    Also I think you should try to include git reset --hard in the script so that the git status is synchronised with the file system.

提交回复
热议问题