g method in the git helper