Making git auto-commit

前端 未结 18 1729
面向向阳花
面向向阳花 2020-11-27 08:41

I\'d like to use git to record all the changes to a file.

Is there a way I can turn git \'commit\' on to automatically happen every time a file is updated - so ther

18条回答
  •  一整个雨季
    2020-11-27 09:30

    I made this tiny shell script to monitor files status and trigger commands such as git commit on build success.

    Feel free to download and try it.

    https://github.com/nzvincent/nzvincent-github/blob/master/inotify-tools/inotify.sh

提交回复
热议问题