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

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

    On Linux/Unix, you can append files to the .gitignore file with the echo command. For example if you want to ignore all .svn folders, run this from the root of the project:

    echo .svn/ >> .gitignore
    

提交回复
热议问题