git commands for 3rd-party commit/update hooks

From: Pavel Sanda <hidden>
Date: 2016-06-15 22:45:20

hi,
please can you help me to figure out, whether the following task can
be accomplished by git?

imagine that:
1. user configures rcs in two different modes:
a) working in private
b) sharing work via some public repo

2. after configuration all rcs communication goes through some 3rd
   party tool which API knows only commit and update(/merge) hooks.

all docs on git i have seen divide the workflow into the local part
eg. git commit and the sharing part eg. git pull/push.

is it somehow doable with git that after appropriate setup i will
get single git command for each commiting/updating operation
regardless of 1a or 1b scenario? something which can be stuffed
into that 3rd-party as external commands for rcs commit/update while
keeping it oblivious whether the work is stored locally or on some 
remote place.

thanks,
pavel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help