LoginSignup
0
1

More than 3 years have passed since last update.

git add で "does not have a commit checked out" が出た時の対処法

Last updated at Posted at 2020-08-28

gitについてはだいぶ理解したつもりだったが、初歩的なところに引っ掛かりましたので、備忘録として残しておく。

まず、git statusで中身を確認。


On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    .DS_Store
    .vagrant/
    Vagrantfile
    portfolio/

Untracked file を発見。

git add -i で選択し、個別で追加したらgit commit を実行。

これで完了。

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