handled the git commands