Reputation: 2428
The problem:
There is a php script on my server changing some files in a dir called "example/". This changed files are "uncommitted", ok. So, to bring this changes I need to:
This is a very boring work and I would to know if there is a way or script to do it automatic. Maybe the git hooks could help to do this tasks but I can't find anything about this problem.
Or (if exists) some git command to remote update from local.
Sorry my english. ^^
Upvotes: 0
Views: 18
Reputation: 147
If it's your php script, and/or you have access to change it, you could just edit the script to commit the changes.
Otherwise, depending on your server platform, you could add a cron job (or scheduled task (Windows) etc) and write a new script to periodically commit changes.
As far as I know, git hooks don't apply here because the working directory is just being changed by the php script, which isn't actually a git function.
Upvotes: 1