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

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

    You have to install git-extras for this. You can install it in Ubuntu using apt-get,

    $ sudo apt-get install git-extras
    

    Then you can use the git ignore command.

    $ git ignore file_name
    

提交回复
热议问题