How to use git push rules and facts to decision central in new RHDM 7

Git are the key technologies in Drools/RHDM design time, in RHDM 7(Red Hat has rename the previous BRMS to Decision Manager), how to use git and push rules and facts to decision central?

  • Assume the test keysapce and test project are created.

  • Clone the test project via git clone ~/rhdm/jboss-eap-7.1/.niogit/test-myrepo.git, note that the test project under the test-myrepo folder.

  • Import the test project to IDE and do some edit.

  • Commit the change:

$ git add --all
$ git commit -m "add facts and rules"
$ git push