Added "get hash commit" function from local file in .git folder(without using git command).