문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top