git checkout in bare repository