Only show git:commit and git:push command when development mode is on and Git repository is found refs  #6695
Fix unit test after I disabled some tests in 13c730f35381b441b1b02b22e3990f3f5148de59 cc @sgiehl