I have a @daily job in the crontab that runs git gc on all the repos. I\'m trying to set up a log file for the job but I/O redirection does not pro
@daily
git gc
You can try this:
script -q -c 'git gc' > log
Or this (with more readable output):
script -q -c 'git gc' | sed 's/\r.*//g' > log