4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git add しようとすると fatal: Unable to create

Posted at

git add のコマンドを叩いたら、エラー

開発サーバー@develop

git add ./
fatal: Unable to create '/home/httpd/html/.git/index.lock': ????????

これは”ロックファイルがつくれないよーふぇぇと言われています。

フォルダの権限をチェック

drwxr-sr-x   7 root    root

あっさり原因が判明しました。フォルダの権限の問題でした。

  • 解決1 root 権限で実行する
  • 解決2 フォルダの権限を変更する

これで無事にadd できました。

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?