3
0

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 1 year has passed since last update.

#git add ( error: '<directory>/' does not have a commit checked out )

Last updated at Posted at 2020-05-03

git管理するディレクトリがネストしている場合
例えば次のような場合

directory1/.git
directory1/directory2.git

directory2 のコミットは、カレントディレクトリが directory2 以下のときにしかコミットできないっぽい

cd directory1/directory2
git commit add .

あまり良い構成ではないので、ディレクトリをネストしての git管理早めたほうが良いかも

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?