gitignore across all branches?

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

    • http://cogniton-mind.tumblr.com/post/1423976659/howto-gitignore-for-different-branches
    • You can create a global gitignore

    create a ~/.gitignore in your user directory

    .DS_Store 
    *.pyc 
    .svn 
    

    then run: git config --global core.excludesfile ~/.gitignore

    • Emacs files

      \#*#

    Since 1.6.2, \ should be supported in .gitignore

提交回复
热议问题