Where does the .gitignore file belong?

后端 未结 8 911
我寻月下人不归
我寻月下人不归 2020-12-12 08:43

Does the .gitignore file belong in the .git folder structure somewhere or in the main source files?

8条回答
  •  天命终不由人
    2020-12-12 09:13

    Put .gitignore in the working directory. It doesn't work if you put it in the .git (repository) directory.

    $ ls -1d .git*
    .git
    .gitignore
    

提交回复
热议问题