Home | Articles | Tutorials | About me Posted by: Kim N. Lesmer on 09.10.2010 The Git revision control system has something called a "bare" and a "non-bare" repository. This article deals with the issue and also compares the Git design to the design of Mercurial and Bazaar. NB! The article isn't relevant to Git prior to version 1.7.0. The other day I was working with Git and I got the following error after having tried to push some changes back to a remote repository that I had created. remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsistent remote: error: with what you pushed, and will require 'git reset --hard' to match remote: error: the work tree to HEAD. remote: error: remote: error: You ca...