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

后端 未结 11 2661
一个人的身影
一个人的身影 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:51

    I hope it's not too late.

    If you are on Windows you can just do the following to create a .gitignore file

    echo name_of_the_file_you_want_to_ignore.extension > .gitignore
    

    In order to edit .gitignore you can run

    notepad .gitignore
    

提交回复
热议问题