This utility will take a path as an argument and look for the .gitrepos file
in given path. This file contains a list of directories with GIT repositories
you want to synchronize with upstream/master. This utility assume you have
following branches and remotes:
origin/master- This is a master branch of your Github fork.upstream/master- This is the original repo (repo you forked from) master.
The tool will do following operations for each repository defined:
git fetch upstreamgit checkout mastergit merge upstream/mastergit branch(get list of branches)git checkout $branchgit cherry upstream/master
If all commits from $branch are available in upstream/master, then:
git checkout mastergit branch -D $branchgit push origin :$branch