Git commit opens blank text file, for what?

前端 未结 17 975
长情又很酷
长情又很酷 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 19:15

    You're meant to put the commit message in this text file, then save and quit.

    You can change the default text editor that git uses with this command:

    git config --global core.editor "nano"
    

    You have to change nano to whatever command would normally open your text editor.

提交回复
热议问题