git: finding file changed since certain date and upload a server

good old bash.

git log -p --since={2011-11-01} | grep "diff --git" | awk '{print $3}' | sed 's/^a\///g' | sort -rn | uniq | while read s; do scp $s root@yourip:/server_path/$s; done;
Like it.? Share it:

Comments are closed.