Problem:
we have 2 repo's. working on repo A and once each X days (or when repo A is stable) we update repo B to be exactly like repo A (excluding some files from repo A)
Example:
2 repo's (each with its own git)
repoA
+-pom.xml
+-src
repoB
+-pom.xml
+-src
want to run a script that will once every X days take all commits from repoA that didnt affect pom.xml and apply them as 1 commit in repo B
eventually repoB src folder should be exactly the same as repoA src folder
thinking of taking the easy path and just using a bash script
mkdir /tmp/repoA
cp /repoA /tmp/repoA
rm /tmp/repoA/pom.xml
mv /tmp/repoA repoB
git commit -m "updated repo B"
git push
some1 has a better idea doing this using git and not just plain old mv ??