git clone git@github.com:dgolovin/jbosstools-sim.git

git@github.com:dgolovin/jbosstools-vpe.git jbosstools-sim-tmp

cd jbosstools-sim-tmp

git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch features/org.jboss.tools.vpe.feature/\*" HEAD
git filter-branch --force --tree-filter "rm -rf features/org.jboss.tools.vpe.feature" --prune-empty HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch features/org.jboss.tools.vpe.test.feature/\*" HEAD
git filter-branch --force --tree-filter "rm -rf features/org.jboss.tools.vpe.test.feature" --prune-empty HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch features/org.jboss.tools.xulrunner.feature/\*" HEAD
git filter-branch --force --tree-filter "rm -rf features/org.jboss.tools.xulrunner.feature" --prune-empty HEAD

git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.docbook/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.html/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.jsp/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.resref/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.spring/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.ui.palette/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.vpe.xulrunner/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.xulrunner/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch plugins/org.jboss.tools.xulrunner.initializer/\*" HEAD

git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.docbook" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.html" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.jsp" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.resref" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.spring" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.ui.palette" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.vpe.xulrunner" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.xulrunner" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf plugins/org.jboss.tools.xulrunner.initializer" --prune-empty HEAD

git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.base.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.docbook.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.html.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.jsp.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.spring.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.ui.test/\*" HEAD
git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch tests/org.jboss.tools.vpe.xulrunner.test/\*" HEAD

git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.base.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.docbook.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.html.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.jsp.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.spring.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.ui.test" --prune-empty HEAD
git filter-branch --force --tree-filter "rm -rf tests/org.jboss.tools.vpe.xulrunner.test" --prune-empty HEAD

# do the same for deleted 

git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch images/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch .gitmodules' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch cordova/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch accelerometer.html' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch cache.manifest' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch cordova-2.2.0.js' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch package.json' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch browsersim-standalone/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch tests/org.jboss.tools.vpe.ui.bot.test/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch plugins/org.jboss.tools.vpe.base.test/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch releng/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch plugins/org.jboss.tools.common.resref/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch tests/org.jboss.tools.jsf.vpe.html.test/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch tests/org.jboss.tools.jsf.vpe.jsp.test/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch tests/org.jboss.tools.jsf.vpe.jsf.test/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch tests/org.jboss.tools.vpe.mozilla.test/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch tests/org.jboss.tools.vpe.test.richfaces/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch plugins/org.jboss.tools.vpe.mozilla.gtk/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch plugins/org.jboss.tools.vpe.mozilla.win32/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch plugins/org.jboss.tools.vpe.mozilla/\*' --prune-empty -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch plugins/org.jboss.tools.vpe.ui/\*' --prune-empty -- --all


cd ../jbosstools-sim

git pull file:///../jbosstool-sim-tmp

git push origin master
