Description
Camel-git has been thought to be used as different separate commands, so a new message is built after each git commands(use of exchange.getOut()). If you try to chain 2 different commands (add and commit), you will loose the camel headers in between.
The idea is to copy headers from in to out. Another solution could be to modify "exchange.getIn()" instead of using "exchange.getOut()".