Java code for testing the gitHub reporsitory and commiting