Git commit opens blank text file, for what?

前端 未结 17 940
长情又很酷
长情又很酷 2020-12-22 18:33

In all the Git tutorials I\'ve read they say that you can do:

git init
git add .
git commit

When I do that I get a big text file opened up.

17条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-22 18:56

    The git commit command will open up the editor specified in the EDITOR environment variable so you can enter a commit comment. On a Linux or BSD system, this should be vi by default, although any editor should work.

    Just enter your comments and save the file.

提交回复
热议问题