[wix-devs] Syncing upstream master.

Hoover, Jacob Jacob.Hoover at greenheck.com
Thu Dec 27 15:36:55 PST 2018


Assuming you fork anything you are working on, and you always keep master in sync with upstream/master... Here's a fun little script to synchronize your repo's with upstream. (Currently placed in your root dir [where all your repos are sub folders], but could be modified to live in Home as well.)

#!/bin/sh
find -maxdepth 1 -mindepth 1 -type d -not -name '.vs' -not -name 'debug' -not -name 'packages' | while read dir ; do echo "Syncing $dir." && cd $dir && git checkout master && git pull && git fetch upstream && git merge upstream/master && git push && cd .. ; done

Thanks,
Jacob



More information about the wix-devs mailing list