想定ケース

手順

  1. フォルダをVSCodeで開く

  2. ターミナルで以下のコマンドを順に入力する

    1. git init
    2. git add .
    3. git commit -m “initial commit”

    以下のような画面になるはず

    $ git init
    Initialized empty Git repository in...
    $ git add .
    $ git commit -m "initial commit"
    19 files changed, 7126 insertions(+)
    ~~~~
    ~~~~
    ~~~~
    

以上の手順を踏めば、無事にローカルディレクトリをGitリポジトリにすることができる。