Git commit opens blank text file, for what?

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

    When doing revision control, you should always explain what the changed you made are. Usually the first time you're have a comment such as "Initial Commit."

    However in the long run you want to make a good comment for each commit. You will want something of the form:

    Added experimental feature x.

    X will increase the performance of feature Y in condition Z. Should you need X activate it with the -x or --feature-eks switches. This addresses feature request #1138.

提交回复
热议问题