Frage

I'd like to mirror a remote site (something like CPAN, via rsync) and create daily snapshots with git. Is there any tool that does the "remove the deleted files from the repository and add the changed/new files to the index and commit with the current date as the commit message" task?

The idea is to make an archive of the site (files only) and go back in time day by day.

War es hilfreich?

Lösung

Make a shell script:

git add --all
git commit -m "changes on `date`"

not sure if it makes sense to put current date into a commit message, because each commit has timestamp anyway already.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top