Taking into consideration that there are several git commands that make no sense in a bare repository (because bare repositories don't use indexes and do not have a working directory), git reset --hard HEAD^ is not a solution to uncommit the last change in such a repository. Searching through the Internet, all I could find related to the topic is this, in which I am presented three ways of doing t