We are able to create GIT repository on SAP HCP for SAPUI5 applications but we are not able to do the same for Java based applications. However for now, we have a small hack which we are employing which is as follows.
Create an HTML5 applications and once created, we have a GIT repository setup by default which we are using to store code related to the java app.