Reputation: 985
Is it a way when the FTP got a change then some tool will commit and push to Bitbucket or Gitlab,i looked Google,most of the toll is Git > FTP
,but i want is FTP > Git
Upvotes: 0
Views: 141
Reputation: 141
If you're in Linux machine then that would be simple. You must have something like inotify and git to achieve what you want. I wrote a similar script 2 years ago. What is does is it will listen to the changes on a particular directory and when something changed it will run rsync. You can just replace rsync by Git.
There is a similar script on Python also: https://pypi.python.org/pypi/py-notify/0.3.1
Upvotes: 1