In git use the command git log -1 and it should give you some input. below is a sample, bold/italic is my commit no.
commit f0ac93031a951bde7e014693803003e63c5bafd9 (HEAD -> master)
If possible better to port old custom stuff into a new Hercules. Files often have cross-dependencies, so it likely cannot just be straight imported.