I guess it happens to all of us, you sit at work, you commit your changes, then you go home. While driving in your car, you might come across the thought “darn, did i push my changes?”. If you are one of those people who have so much repositories, you cannot track in your head which one needs a pull or push, then git-sync might be your solution.

It is by no means perfect, it’s just a little script i hacked up this morning:

Now when you run “git sync”, it will sync all your repos found in $REPODIR. Crontab it to like 6pm, so when you get home, you can be sure everything is pushed. Also you could do this in the morning to ensure your nightly changes you might have made at home are on your workstation.