Add toString method in GitTestA.java

Updates the GitTest.java main method so it only outputs the toString method.