test git command before real execution