gitignore across all branches?

后端 未结 5 2406
有刺的猬
有刺的猬 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条回答
  •  猫巷女王i
    2021-02-14 02:25

    If you created the gitignore file before creating the branches, it's obviously available in them. Otherwise you need to merge that file to other branches.

    You can define a global ignore file with git config --global core.excludesfile [ignorefile].

提交回复
热议问题