gitignore across all branches?

后端 未结 5 2392
有刺的猬
有刺的猬 2021-02-14 02:05

Hey I\'m trying to get into git, as an emacs user first thing to do is to make sure the ~ and #*# files are ignored by git. Documentation talks about .gitignore which I\'ve been

5条回答
  •  遇见更好的自我
    2021-02-14 02:21

    1. Check-in the .gitignore file. It is available across all the branches (unless you mess about with it) and keep it up to date with all your exclusions
    2. Use a global gitignore file.
    3. Add this to your gitignore file.

      #
      .#

    I've written about the three ways of excluding files here.

提交回复
热议问题