gitignore across all branches?

后端 未结 5 2382
有刺的猬
有刺的猬 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:20

    Add this to your $HOME/.gitconfig ;

    [core]
        excludesfile = /path/to/your/local/.gitignore
    

    Then it'll be locally available on all your git repositories.

提交回复
热议问题