Push local changes to remote git repository

60 views
Skip to first unread message

ChennaiCheetah

unread,
Apr 7, 2021, 8:59:46 AM4/7/21
to Drools Usage
Hi All,

I am new to Drools here. Currently, Drools is installed in my local machine and it is working fine.

I am planning to push all my future new project , asset  changes to github repository.

Any reference or link to implement the same would be much helpful.


Amit ninja

unread,
Apr 7, 2021, 9:02:05 AM4/7/21
to drools...@googlegroups.com



CONFIDENTIALITY AND DISCLAIMER NOTE:

These messages including any attachments are intended only for the addressee and may contain confidential, proprietary or legally privileged information. If you are not the named addressee or authorized to receive this mail, you shall not copy, forward, disclose or take any action based on this message or any part thereof. In the event that you are not the named addressee/intended recipient of the e-mail, please notify the sender of receipt of this message and delete this message including any attachment to it from your computer system immediately. The recipient acknowledges that the views, opinions, conclusions and other information expressed in this message are those of the individual sender and shall be understood as neither given nor endorsed by CAPIOT*, unless the sender does so expressly with due authority of CAPIOT and CAPIOT shall not be liable for any errors or omissions in the context of this message. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.  These messages, unless specifically stated in the email and followed by an agreement, does not tantamount to an offer or an acceptance of an offer by the sender.

* CAPIOT refers to CAPIOT, Inc. and all its subsidiaries including CAPIOT Software Private Limited, CAPIOT Software Pty Ltd, CAPIOT Software Pte Ltd.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/8e16ecba-a918-4e2e-9b29-70f67bab45f6n%40googlegroups.com.

ChennaiCheetah

unread,
Apr 8, 2021, 9:34:53 AM4/8/21
to Drools Usage

Hi amit,

Thanks for the link. It was very useful. Learned some new stuff. 

But the link talks about post commit hook internal to same repo. Is there any other link/reference to push the local changes to remote git

Amit Nijhawan

unread,
Apr 9, 2021, 12:47:19 AM4/9/21
to drools...@googlegroups.com
if you want to push from local to remote then you have to follow git appoach https://docs.github.com/en/github/getting-started-with-github/pushing-commits-to-a-remote-repository

Nithish Thirmul

unread,
Apr 10, 2021, 2:19:11 AM4/10/21
to drools...@googlegroups.com
Hi Amit ,

I tried the below steps 

Step 1 : I moved into the .git directory

cd JBOSS_HOME/bin/.niogit/REPOSITORY_NAME.git

Step 2 : I have pointed my remote URL to github

git remote set-url origin g...@github.com:USERNAME/REPOSITORY_NAME.git

Step 3 : Create post-commit  file inside hooks folder

#!/bin/sh
echo "started"
git push origin master
Step 4 : I added new DRL file and made a save. Nothing got reflected in my remote git .

But If i do a manual  git push origin master through CML, that is getting stored remote github.


My OS : Windows10


On Fri, Apr 9, 2021 at 10:17 AM Amit Nijhawan <anij...@redhat.com> wrote:
if you want to push from local to remote then you have to follow git appoach https://docs.github.com/en/github/getting-started-with-github/pushing-commits-to-a-remote-repository

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/ZrZhWOWXYjE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2B%2Bpbv-%2B_11G2GVB8HtybxpPCg_nRxfEz%2B8b0Wq09Mqk-N4Feg%40mail.gmail.com.

Amit Nijhawan

unread,
Apr 10, 2021, 3:02:35 AM4/10/21
to drools...@googlegroups.com
Git hook only works on business centralUI, if you add any asset on business central UI after configuring post commit and if you save it then will reflect to your remote repo.

Did you try the business center you are trying to push from the local ?
In Business Central go to Menu  Projects  Add Asset  Guided Rule.
On the Create new Guided Rule page, enter the required information, Click Ok.
Business Central automatically pushes all changes to the remote repository.


You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAH6W_1Kp-%3DwAagEfDPfo5j-0bNngLDZ2G1To5ybxJnXeEX3hPg%40mail.gmail.com.

Alex Porcelli

unread,
Apr 10, 2021, 9:12:42 AM4/10/21
to drools...@googlegroups.com

In windows machines you need Cygwin.


--
Regards,
_____________
Alex Porcelli
http://porcelli.me

Nithish Thirmul

unread,
Apr 11, 2021, 11:34:13 PM4/11/21
to drools...@googlegroups.com
Hi Alex,

I have installed cygwin also . all ssh keys also correctly in place. I can see a proper connection is there between my localhost and remote git. Only problem is post-commit hook is not getting triggered.   Inside the .git folder If I do a manual git push origin master ithrough CML t is working fine.

Nithish Thirmul

unread,
Apr 12, 2021, 12:25:26 AM4/12/21
to drools...@googlegroups.com
Hi All,

Closing this issue. It is working quite well now.

All I did was restart of the machine.

Regards,
Nithis

Alex Porcelli

unread,
Apr 12, 2021, 2:12:35 PM4/12/21
to drools...@googlegroups.com
Are you sure that you're starting BC in the Cygwin context?

Regards,
___________________
Alex Porcelli
F: +1 (978) 844-8695
https://porcelli.me
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAH6W_1%2B4CV7i9S9qPEkGbZiTWqvLghtQ3JULtbnpabzhYdpSEQ%40mail.gmail.com.

Nithish Thirmul

unread,
Apr 13, 2021, 12:47:29 AM4/13/21
to drools...@googlegroups.com
I am starting decision central via Windows Command prompt only.


Reply all
Reply to author
Forward
0 new messages