Is .gitignore not working or I have misunderstood it?
Posted
by
Shubham
on Stack Overflow
See other posts from Stack Overflow
or by Shubham
Published on 2012-07-06T15:05:33Z
Indexed on
2012/07/06
15:15 UTC
Read the original article
Hit count: 252
git
I am very new to git. I have a .gitignore in the my working folder.
*.jpg
*.gif
*.png
system/*
*/Zend/*
.idea/*.*
Well, I did git init
and then git add *
. At this it worked fine and ignored the above files. But when I did some changes, ran the same command it puts the ignored files into staging area. The reason why I am using git add *
is because I work on many files and adding each file would be a overkill.
Update: Here are messages when I run git add *
second time..
#new file: application/vendors/Zend/XmlRpc/Value/String.php
#new file: application/vendors/Zend/XmlRpc/Value/Struct.php
...
The list is too long.
© Stack Overflow or respective owner