【git】fatal: This operation must be run in a work tree

エックスサーバーでgit管理しているプロジェクトを定期的にローカルに落としているが

ある日いつものゆうにコミットしようとしたら

fatal: This operation must be run in a work tree

のエラー。。。

は?

調べてみると、どうもベアリポジトリ内ではgit操作できない?

この状況を治すには

git config --unset core.bare

をすると使えるようになります!!

 

コメント

  1. this review より:

    Great beat ! I wish to apprentice while you amend your site,
    how can i subscribe for a blog site? The account helped me a acceptable deal.
    I had been a little bit acquainted of this your broadcast offered bright clear idea