Making git auto-commit

前端 未结 18 1730
面向向阳花
面向向阳花 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:20

    For Windows

    According to this article about autocommit, you shou create .bat file with content:

    git add -u
    git commit -m "your commit message"
    git push origin master 
    

    and execute with Task Scheduler. If you don't know how to do step-by-step, refer that article.

提交回复
热议问题