Where does the .gitignore file belong?

后端 未结 8 900
我寻月下人不归
我寻月下人不归 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:19

    If you want to do it globally, you can use the default path git will search for. Just place it inside a file named "ignore" in the path ~/.config/git

    (so full path for your file is: ~/.config/git/ignore)

提交回复
热议问题