Is there an ignore command for git like there is for svn?
问题 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 like there is for svn ? 回答1: There is no special git ignore command. Edit a .gitignore file located in the appropriate place within the working copy. You should then add this .gitignore and commit it. Everyone who clones that repo will than have those files ignored. Note that only file names starting with / will be relative to the directory