I have a project dir, and I git init the dir. Then I created a .gitignore file in the same dir, and copied these.gitignore rules
# OS generated files #
.DS_Store
# SVN control files #
.svn
and then I tried git add, and the console outputs:
add '.DS_Store'
add '.gitignore'
add '.svn/all-wcprops'
add '.svn/entries'
the .gitignore seems not working. Can someone help me?
Add:
a lot of similar questions says that, use "git rm -r --cached ." But i have never commit once, it just dont helpful!
As you wish, here is git status output:
by-01-0497:trunck appleofuestc$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   .DS_Store
#   .gitignore
#   .svn/
#   SiChuan-Mahjong/
nothing added to commit but untracked files present (use "git add" to track)
 
     
    