We are using git installed on a web server to develop with and we have placed a bare .git project outside of the public_html directory, and then we're cloning the master branch to a directory inside public_html. This allows us to push to the master branch without worrying about errors of the branch already being checked out.
We had the idea (and have checked it, works wonderfully so far) that we could checkout individual commit heads as a quick roll-back while we fix the master branch and pull again. Are there any known downsides or security issues we need to know about when doing this?