reset --hard HEAD after creating historage

Call reset --hard HEAD after creating historage for non bare repository.
This pull request will resolve #38