Git commit opens blank text file, for what?

前端 未结 17 979
长情又很酷
长情又很酷 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

    If you’re on Mac OS X and using BBEdit, you can set this up as the editor of choice for commit messages:

    git config --global core.editor "bbedit -w"
    

    Once finished edit, save and close the file and git will use it for the comments.

提交回复
热议问题