Git post-commit hook as a background task

前端 未结 4 1885
情书的邮戳
情书的邮戳 2020-12-20 11:11

I have a script, that I need to run after committing to a project under git revision control. Therefore I created a post-commit hook in my projects .git directory in the sub

4条回答
  •  伪装坚强ぢ
    2020-12-20 11:50

    If you change #!/bin/sh to #!/bin/bash (assuming you're ok with using bash), and use nohup, your example should work.

提交回复
热议问题