Dart: default gitignore?

后端 未结 4 1554
一生所求
一生所求 2021-01-02 00:25

I created a new app and the Dart Editor (M4) created a slew of files and folders. Now I\'m not sure which I can safely put in the gitignore. Here\'s the tree:



        
4条回答
  •  甜味超标
    2021-01-02 01:25

    An up to date sample Dart .gitignore is available in the gitignore repo on Github:

    https://github.com/github/gitignore/blob/master/Dart.gitignore

    Note that this does not contain IDE or editor files, just Dart files. You can find IDE and editor .gitignores in the same repo.

    I include doc/api in my .gitignore. I tend to write substantial documentation comments and I like to use dartdoc to generate the documentation for review.

提交回复
热议问题