Is there an ignore command for git like there is for svn?

后端 未结 11 2607
一个人的身影
一个人的身影 2020-12-23 00:21

I am a new user to git and I am starting a new project. I have a bunch of dot files that I would like to ignore. Is there an ignore command for git

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 00:56

    You have two ways of ignoring files:

    • .gitignore in any folder will ignore the files as specified in the file for that folder. Using wildcards is possible.
    • .git/info/exclude holds the global ignore pattern, similar to the global-ignores in subversions configuration file.

提交回复
热议问题